antlr4-autosuggest icon indicating copy to clipboard operation
antlr4-autosuggest copied to clipboard

Complete current token

Open NicoLaval opened this issue 1 year ago • 0 comments

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?

NicoLaval avatar Aug 12 '23 13:08 NicoLaval