nvim-treesitter/queries/query/highlights.scm

86 lines
1.4 KiB
Scheme
Raw Normal View History

2020-07-28 07:39:45 -05:00
(string) @string
2024-01-06 15:05:50 +09:00
(escape_sequence) @string.escape
2024-01-06 15:05:50 +09:00
(capture
(identifier) @type)
(anonymous_node
(identifier) @string)
(predicate
name: (identifier) @function.call)
(named_node
name: (identifier) @variable)
(field_definition
name: (identifier) @property)
(negated_field
"!" @operator
(identifier) @property)
2022-09-26 10:19:02 +01:00
(comment) @comment @spell
2020-09-04 13:09:28 -05:00
(quantifier) @operator
2024-01-06 15:05:50 +09:00
2020-09-04 13:09:28 -05:00
(predicate_type) @punctuation.special
2021-04-10 15:18:44 -05:00
"." @operator
2020-09-04 13:09:28 -05:00
[
"["
"]"
"("
")"
] @punctuation.bracket
2021-04-10 15:18:44 -05:00
":" @punctuation.delimiter
2024-01-06 15:05:50 +09:00
[
"@"
"#"
] @punctuation.special
"_" @constant
2021-04-10 15:18:44 -05:00
2024-01-06 15:05:50 +09:00
((parameters
(identifier) @number)
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
2021-08-13 18:15:18 -05:00
2024-01-06 15:05:50 +09:00
((program
.
(comment)*
.
(comment) @keyword.import @nospell)
2024-01-06 15:05:50 +09:00
(#lua-match? @keyword.import "^;+ *inherits *:"))
2024-01-06 15:05:50 +09:00
((program
.
(comment)*
.
(comment) @keyword.directive @nospell)
2024-01-06 15:05:50 +09:00
(#lua-match? @keyword.directive "^;+ *extends *$"))
2023-12-21 15:31:40 -08:00
((comment) @keyword.directive @nospell
(#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
2023-12-21 15:31:40 -08:00
((predicate
name: (identifier) @_name
parameters: (parameters
(string
"\"" @string
"\"" @string) @string.regexp))
2024-01-06 15:05:50 +09:00
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match" "lua-match" "not-lua-match"))
2023-12-21 15:31:40 -08:00
((predicate
name: (identifier) @_name
parameters: (parameters
(string
"\"" @string
"\"" @string) @string.regexp
.
(string) .))
2024-01-06 15:05:50 +09:00
(#any-of? @_name "gsub" "not-gsub"))