Skip to content

Semantic highlighting only works for the last line #636

Answered by msujew
luan-xiaokun asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @luan-xiaokun,

there's a minor issue in your grammar that prevents the semantic token provider from working correctly (and a lot of other services as well). Your AST model only consists of a single TypeDefinition, even though it parses multiple ones. You can easily fix this issue though:

entry Program:
    typeDefintions+=TypeDefinition*;

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@luan-xiaokun
Comment options

@luan-xiaokun
Comment options

@msujew
Comment options

@luan-xiaokun
Comment options

Answer selected by luan-xiaokun
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