Fix tree-sitter highlighting

This commit is contained in:
2026-05-14 14:21:13 -06:00
parent 2829643f5a
commit 482fcf5ce0

View File

@@ -1,14 +1,17 @@
; TODO: automate highlighting testing
; TODO: ensure that name segments are highlighted correctly in each context
(comment) @comment.line
(integer) @constant.numeric
(string) @string.quoted
(escape_sequence) @constant.character.escape
(variable) @variable
(expr (symbol) @constant)
(expr symbol: _ @constant)
(import (symbol) @module)
(type (symbol)) @type
(type (name)) @type
(type_alias name: _ @type)
(rule relation: (symbol) @constructor)
(rule relation: (name) @constructor)
(relation name: (symbol) @function)
(apply head: _ @function)