-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Did you check the tree-sitter docs?
- I have read all the tree-sitter docs if it relates to using the parser
Is your feature request related to a problem? Please describe.
While typing, keywords only highlight when the parser has a complete block. I checked highlights.scm and saw that keywords like function/if/for/while/... are only captured inside their block nodes. During edits, this makes keyword colors flicker a lot when the block is incomplete.
Describe the solution you'd like
Provide a fallback keyword highlight (literal keyword captures) so keywords stay highlighted even when the parse is incomplete. This would reduce flicker while editing without changing the grammar.
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request