Skip to content
Discussion options

You must be logged in to vote

Hey @goto40,

completion is a pretty complex thing. The current algorithm jumps to the start of the token at the cursor position to identify the position in the grammar. It needs this position to find out which grammar elements can follow the current cursor position. It also has some additional logic in there to deal with assignments and cross reference related elements.

The issue with FQN appears when the start of the token isn't actually the start of the cross reference. The completion would actually need to jump a few more characters back to identify that the current element we're looking at isn't some ID inside of an FQN rule, but the person=[Person:FQN] assignment of the Greeting rule.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goto40
Comment options

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