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

Syntax highlights issues #29

Open
andregalastri opened this issue Mar 31, 2022 · 1 comment
Open

Syntax highlights issues #29

andregalastri opened this issue Mar 31, 2022 · 1 comment

Comments

@andregalastri
Copy link

I have a VS Code Theme and i found some issues with the syntax highlights support

1. No syntax highlights for Latte code inside strings

The syntax highlights doesn't detect that there is Latte code inside strings.

image

As you can see in the images above, a string has the following textmate scopes:

string.quoted.double.html
meta.attribute.id.html
meta.tag.structure.li.start.html
source.latte

However, if there is Latte code inside that string, it is supposed to be detected and give different text scopes to allow us to apply different colors to that part, but there is no difference. The textmate scopes are the same as if there is no Latte code there:

image


2. Object property no recognized

There is no textmate scope for properties

image


VS Code v1.66.0
Nette Latte + Neon v0.18.0

@EncryptSL
Copy link
Contributor

EncryptSL commented Jan 13, 2023

  1. Issue maybe not working this pattern.
    https://github.com/kasik96/VS-Latte/blob/master/syntaxes/latte.tmLanguage#L127

  2. I think missing for this pattern or vscode change something.

I don't know how working this syntax highlights in vscode.
But who have experience can send PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants