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

80 lines
813 B
Scheme

; Key Symbol
"=" @operator
[
"."
","
":"
";"
] @punctuation.delimiter
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
; Keywords
[
"syntax"
"info"
"service"
] @keyword
"import" @keyword.import
"returns" @keyword.return
[
"type"
"struct"
] @keyword.type
[
"@doc"
"@handler"
"@server"
] @attribute
; Service
(serviceName) @type
; Httpmethod
(HTTPMETHOD) @keyword.operator
; Field
(fieldType) @type.builtin
(fieldName) @variable.member
(anonymousField) @variable.member
; Functions
(handlerValue) @function.method
; Strings
(VALUE) @string
(tag) @string.documentation
(PATH) @string.special.path
; Comments
(comment) @comment @spell
(key) @variable.member
(identValue) @string
(DURATION) @number
(NUMBER) @number
; Struct
(structNameId) @type
(body) @type