mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
55
runtime/queries/promql/highlights.scm
Normal file
55
runtime/queries/promql/highlights.scm
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
; highlights.scm
|
||||
[
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"+"
|
||||
"-"
|
||||
">"
|
||||
">="
|
||||
"<"
|
||||
"<="
|
||||
"="
|
||||
"=~"
|
||||
"!="
|
||||
"!~"
|
||||
] @operator
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
(float_literal) @number.float
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(metric_name) @type
|
||||
|
||||
(range_selection) @type
|
||||
|
||||
(subquery_range_selection) @type
|
||||
|
||||
(label_name) @variable.member
|
||||
|
||||
((label_name)
|
||||
[
|
||||
"=~"
|
||||
"!~"
|
||||
]
|
||||
(label_value) @string.regexp)
|
||||
|
||||
((label_name)
|
||||
[
|
||||
"="
|
||||
"!="
|
||||
]
|
||||
(label_value) @string)
|
||||
|
||||
(function_name) @function.call
|
||||
|
||||
(comment) @comment @spell
|
||||
11
runtime/queries/promql/injections.scm
Normal file
11
runtime/queries/promql/injections.scm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((label_name)
|
||||
[
|
||||
"=~"
|
||||
"!~"
|
||||
]
|
||||
(label_value) @injection.content
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
Loading…
Add table
Add a link
Reference in a new issue