mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
42
runtime/queries/promql/highlights.scm
Normal file
42
runtime/queries/promql/highlights.scm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
; highlights.scm
|
||||
|
||||
[
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"+"
|
||||
"-"
|
||||
">"
|
||||
">="
|
||||
"<"
|
||||
"<="
|
||||
"="
|
||||
"=~"
|
||||
"!="
|
||||
"!~"
|
||||
] @operator
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
(float_literal) @float
|
||||
(string_literal) @string
|
||||
|
||||
(metric_name) @type
|
||||
(range_selection) @text.strong @type
|
||||
(subquery_range_selection) @text.strong @type
|
||||
|
||||
(label_name) @field
|
||||
(label_value) @text.underline @string.regex
|
||||
|
||||
(function_name) @function.call
|
||||
|
||||
(comment) @comment @spell
|
||||
(ERROR) @error
|
||||
|
||||
3
runtime/queries/promql/injections.scm
Normal file
3
runtime/queries/promql/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
((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