Konafets / antlers-idea

Adds support for Antlers, the templating language of Statamic
MIT License
16 stars 1 forks source link

PHP in Antlers incorrect highlight #166

Open venux92 opened 11 months ago

venux92 commented 11 months ago

Describe the bug If you add some PHP into an antlers.html file the highlight is incorrect. It's misleading because you feel you have some issue but the file works correctly.

OS:

Jetbrains Product:

IDE Version:

Plugin Version:

To Reproduce Go to https://statamic.dev/antlers#syntax

Copy the example code <a href="{{$ route('account.register') $}}">Register for a new account</a>

Expected behavior Should keep the correct highlight as if we are using variables {{ variable }}

Screenshots -- with variables --

Screenshot 2023-11-24 at 10 41 43 pm

-- with php --

Screenshot 2023-11-24 at 10 41 13 pm
potsky commented 8 months ago

Same problem here on MacOsX.

Screenshot 2024-02-19 - 15-06-04@2x