We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the grammar
grammar Cabug2 entry Model: 'package' package=QualifiedName (content+=Thing)*; ActionParameter: (optional?='optional')? name=ID ':' type=Type; Type: name="Text"; CustomAction: (query?='query')? 'action' name=ID '(' (inputParameters+=ActionParameter (',' inputParameters+=ActionParameter)*)? ')' ':' outputValues=Type; ThingContent: ValidationBlock | CustomAction; Thing: 'thing' name=ID '{' (content+=ThingContent)* '}'; ValidationBlock: 'validations' '{' (content+=Statement)* '}'; When: 'when' condition=Expression '{' '}'; Statement: When ; QualifiedName returns string: ID ('.' ID)*; Expression: Primary; Primary infers Expression: {infer Parenthesis} '(' expr=Expression ')' | RefExpression | ActionCallExpression ; ActionArgument: parameter=[ActionParameter:ID] '=' value=Expression; ActionCallExpression: action=[CustomAction:ID] '(' (args+=ActionArgument (',' args+=ActionArgument)*)? ')'; RefExpression: target=[Thing:ID]; ID returns string: RawId | EscapedId; hidden terminal WS: /\s+/; terminal RawId: /[_a-zA-Z][\w_-]*/; terminal EscapedId: /`[^`]*`/; hidden terminal ML_COMMENT: /\/\*[\s\S]*?\*\//; hidden terminal SL_COMMENT: /\/\/[^\n\r]*/;
content assist does not work at
package demo thing Parent { validations { when myaction ( <|> ) {} } query action myaction ( p1: Text , p2: Text, optional p3: Text ) : Text }
when i comment out
RefExpression |
it does
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the grammar
content assist does not work at
when i comment out
it does
The text was updated successfully, but these errors were encountered: