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

BUG: Custom if_statement directives starting with letter "e" #8

Closed
EmranMR opened this issue Jul 3, 2023 · 0 comments
Closed

BUG: Custom if_statement directives starting with letter "e" #8

EmranMR opened this issue Jul 3, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@EmranMR
Copy link
Owner

EmranMR commented Jul 3, 2023

There is a bug with current "custom if-statment" grammar.js implementation whereby, the custom directive can not start with the letter "e". for example @exxx code @endxxx will not work. See the commit relating to #3

What happens when including "e"

The parser will be unable to pick up nesting correctly, using custom if_statements

The Reason behind the bug:

Simply because assertions such as lookahead and lookbehind are not supported in the RegEx when writing grammars in tree-sitter.

Fix:

This can possibly get fixed using external scanners, if someone proficient in C is happy to help. 🙃

@EmranMR EmranMR added the bug Something isn't working label Jul 3, 2023
@EmranMR EmranMR added the help wanted Extra attention is needed label Jul 3, 2023
@EmranMR EmranMR closed this as completed in 2c76532 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant