Konafets / antlers-idea

Adds support for Antlers, the templating language of Statamic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP in Antlers incorrect highlight

venux92 opened this issue · comments

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:

  • Mac
  • Linux
  • Windows

Jetbrains Product:

  • PhpStorm
  • IntelliJ

IDE Version:

  • [PS-232.10227.13]

Plugin Version:

  • [0.0.6]

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

Same problem here on MacOsX.

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