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

Add correct parenthesis expression support for command templates grammar #17

Open
SegFaulti4 opened this issue Jan 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SegFaulti4
Copy link
Owner

Current implementation of ANTLR4 grammar for command templates is simplistic and can't recognize some strings, such as:

  • {{
  • {{}
  • {}}{{}

All of listed strings should be recognized as template_word, but currently they lead to token recognition errors, for the latter example the output will be:
line 1:5 token recognition error at: '}' line 1:6 no viable alternative at input '{{'

Even though currently there doesn't seem to be any viable example of shell command that fails to be matched because of this behavior, it still may happen in the future.

@SegFaulti4 SegFaulti4 added the bug Something isn't working label Jan 20, 2023
@SegFaulti4 SegFaulti4 self-assigned this Jan 20, 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
Projects
None yet
Development

No branches or pull requests

1 participant