antlr4-autosuggest
antlr4-autosuggest copied to clipboard
Complete current token
Considering the following input:
a = un
in a grammar where un
can be a constant, but where un
can also be the 2 first letters of the union
token.
At this point, autocomplete suggest nothing, maybe because this potential constant complete the script.
Would not be great, if the end of the script is not a whitespace, to ignore the last token in the list, to run the programme and then to filter suggestions with the getText() of the ignored token?