Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP in Antlers incorrect highlight #166

Open
2 of 5 tasks
venux92 opened this issue Nov 24, 2023 · 1 comment
Open
2 of 5 tasks

PHP in Antlers incorrect highlight #166

venux92 opened this issue Nov 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@venux92
Copy link

venux92 commented Nov 24, 2023

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

@potsky
Copy link

potsky commented Feb 19, 2024

Same problem here on MacOsX.

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

@Konafets Konafets added feature New feature or request bug Something isn't working and removed feature New feature or request labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants