Fix tree-sitter highlighting
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
; TODO: automate highlighting testing
|
; TODO: automate highlighting testing
|
||||||
|
; TODO: ensure that name segments are highlighted correctly in each context
|
||||||
|
|
||||||
(comment) @comment.line
|
(comment) @comment.line
|
||||||
(integer) @constant.numeric
|
(integer) @constant.numeric
|
||||||
|
(string) @string.quoted
|
||||||
|
(escape_sequence) @constant.character.escape
|
||||||
(variable) @variable
|
(variable) @variable
|
||||||
(expr (symbol) @constant)
|
(expr symbol: _ @constant)
|
||||||
(import (symbol) @module)
|
(import (symbol) @module)
|
||||||
(type (symbol)) @type
|
(type (name)) @type
|
||||||
(type_alias name: _ @type)
|
(type_alias name: _ @type)
|
||||||
|
|
||||||
(rule relation: (symbol) @constructor)
|
(rule relation: (name) @constructor)
|
||||||
(relation name: (symbol) @function)
|
(relation name: (symbol) @function)
|
||||||
(apply head: _ @function)
|
(apply head: _ @function)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user