nvim-treesitter/runtime/queries/jsdoc/highlights.scm

43 lines
626 B
Scheme
Raw Normal View History

(tag_name) @keyword @nospell
2024-01-06 15:05:50 +09:00
(type) @type @nospell
2024-07-04 16:42:11 -07:00
[
"{"
"}"
"["
"]"
] @punctuation.bracket
[
":"
"."
"#"
"~"
] @punctuation.delimiter
(path_expression
"/" @punctuation.delimiter)
(identifier) @variable @nospell
2024-07-04 16:42:11 -07:00
(tag
(tag_name) @_name
(identifier) @function
(#any-of? @_name "@callback" "@function" "@func" "@method"))
(tag
(tag_name) @_name
(identifier) @variable.parameter
(#any-of? @_name "@param" "@arg" "@argument"))
(tag
(tag_name) @_name
(identifier) @property
(#any-of? @_name "@prop" "@property"))
(tag
(tag_name) @_name
(identifier) @type
(#eq? @_name "@typedef"))