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

Missing feature: Templates highlighting (currently a syntax error) #6

Open
shawwn opened this issue Jan 17, 2022 · 1 comment
Open

Comments

@shawwn
Copy link

shawwn commented Jan 17, 2022

Lark templates currently show up as syntax errors:

image

e.g.

sep{item, delim}: item (delim item)*
@Stehlampe2020
Copy link

I may spend some time soon to get this implemented myself and then I'll do a PR if I deem my code acceptable.
I heavily use templates in my own programming language (for e.g. arrow-separated lists of instructions), so right now I need to manually be able to distinguish between the LARK plugin not understanding templates and actual syntax errors in my LARK syntax. And the "98" in theerror count is right now just it not understanding templates, as lark itself doesn't complain about anything in my syntax.

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