mike-lischke / antlr4-c3

A grammar agnostic code completion engine for ANTLR4 based parsers
MIT License
408 stars 62 forks source link

Autocompleting empty string causes error #94

Closed nchen63 closed 8 months ago

nchen63 commented 9 months ago

When the document is empty and I attempt to autocomplete, I get the error mismatched input '<EOF>' expecting {...} where {...} is a list of keywords that would be what I'd want to autocomplete the first token with. I realize this error comes from the parser layer. Is there a good way to capture the list of keywords instead of (or in addition to) erroring?

I could parse the string error, but that's not ideal

mike-lischke commented 8 months ago

Fixed by #95