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 datatype rule
QualifiedName returns string: ID ('.' ID)*;
with
ID returns string: RawId | EscapedId; terminal RawId: /[_a-zA-Z][\w_-]*/; terminal EscapedId: /`[^`]*`/;
and a bit more lenient proposal provider
export class HelloWorldCompletionProvider extends DefaultCompletionProvider { protected override filterKeyword(_context: CompletionContext, _keyword: GrammarAST.Keyword): boolean { return true } protected override continueCompletion(items: CompletionItem[]): boolean { return true } protected override performNextTokenCompletion(document: LangiumDocument, text: string, _offset: number, _end: number): boolean { return true } }
given model
a| the . will be proposed,
a|
.
at
a.b| the . will NOT be proposed,
a.b|
same for normal parser rule
Thing: "thing" names+=ID ("." names+=ID)*;
The text was updated successfully, but these errors were encountered:
possible workaround
Thing: "thing" names+=ID ThingyRestList*; fragment ThingyRestList: ("." names+=ID);
ID returns string: RawId | EscapedId; QualifiedName returns string: ID QNF*; fragment QNF returns string: ('.' ID);
Sorry, something went wrong.
hmmm
No branches or pull requests
Given the datatype rule
QualifiedName returns string: ID ('.' ID)*;
with
and a bit more lenient proposal provider
given model
a|
the.
will be proposed,at
a.b|
the.
will NOT be proposed,same for normal parser rule
The text was updated successfully, but these errors were encountered: