1
0
mirror of https://github.com/helix-editor/helix synced 2026-01-26 05:38:09 +01:00
helix/runtime/queries/esdl/highlights.scm
Michael Davis 5952d564d1
Reverse highlight precedence ordering (#9458)
Co-authored-by: postsolar <120750161+postsolar@users.noreply.github.com>
Co-authored-by: Iorvethe <58810330+Iorvethe@users.noreply.github.com>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Co-authored-by: gabydd <gabydinnerdavid@gmail.com>
2025-02-02 18:17:10 -06:00

76 lines
922 B
Scheme

; Keywords
[
"module"
"using"
"single"
"multi"
"link"
"property"
"constraint"
"tuple"
"annotation"
"abstract"
"scalar"
"type"
"required"
"optional"
"extension"
"function"
] @keyword
(identifier) @variable
(modifier) @keyword
(extending) @keyword
(module name: (identifier) @namespace)
(object_type) @type
(comment) @comment
; Properties
(property) @variable.other.member
(link) @variable.other.member
(annotation) @variable.other.member
(string) @string
(edgeql_fragment) @string
; Builtins
(type) @type
[
"str"
"bool"
"int16"
"int32"
"int64"
"float32"
"float64"
"bigint"
"decimal"
"json"
"uuid"
"bytes"
"datetime"
"duration"
"sequence"
"anytype"
] @type.builtin
(true) @constant.builtin.boolean
(false) @constant.builtin.boolean
(null) @constant.builtin
; Delimiters
[
";"
","
] @punctuation.delimiter
; Operators
[
"->"
":="
] @operator