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

Language server fails to accept 'fail' option after semantic predicate. #150

Closed
raptor494 opened this issue Oct 12, 2021 · 1 comment
Closed
Labels
possible bug Could be a bug

Comments

@raptor494
Copy link

ANTLR allows you to modify the error message of a failed semantic predicate by following it with a fail option, like so:

rule: alt1
    | {predicate}?<fail='message'>
    | {predicate}?<fail={"action "+"message"}>
    ;

The current language server implementation regards that fail option as a syntax error and does not attempt to compile the parser, even though it would successfully compile.

@mike-lischke mike-lischke added the possible bug Could be a bug label Oct 13, 2021
@mike-lischke
Copy link
Owner

I didn't even know this is possible o_O

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

No branches or pull requests

2 participants