Skip to content
Discussion options

You must be logged in to vote

I'm unsure what to recommend here. Mostly due to the question: What constitutes a keyword if not a well-known word that is separated from other words using a non-word character? I.e. either whitespace or other symbols such als brackets, braces or parenthesis.

So, in theory, you can just declare the keyword as normal and override the pattern in the token builder. That would probably accomplish what you're looking for the best.

You could also keep the regex terminal and then add the corresponding parts to the completion provider. Note that there's very little difference between keywords and other terminals during the language server runtime. It's basically only the completion that is provid…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Yokozuna59
Comment options

@Yokozuna59
Comment options

@spoenemann
Comment options

@Yokozuna59
Comment options

Answer selected by Yokozuna59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants