1
Files
flake-nixinator/config/neovim/store/nvim-treesitter/queries/gn/highlights.scm

79 lines
778 B
Scheme

; Includes
"import" @keyword.import
; Conditionals
[
"if"
"else"
] @keyword.conditional
; Repeats
"foreach" @keyword.repeat
; Operators
[
"="
"+="
"-="
"!"
"+"
"-"
"<"
"<="
">"
">="
"=="
"!="
"&&"
"||"
] @operator
; Variables
(identifier) @variable
; Functions
(call_expression
function: (identifier) @function.call)
; Fields
(scope_access
field: (identifier) @variable.member)
; Literals
(string) @string
(escape_sequence) @string.escape
(expansion) @none
(integer) @number
(hex) @string.special
(boolean) @boolean
; Punctuation
[
"{"
"}"
"["
"]"
"("
")"
] @punctuation.bracket
[
"."
","
] @punctuation.delimiter
(expansion
[
"$"
"${"
"}"
] @punctuation.special)
; Comments
(comment) @comment