mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,21 +1,60 @@
|
|||
["%parameter" "%token" "%type" "%start" "%attribute" "%left" "%right" "%nonassoc" "%public" "%inline" "%prec"] @keyword
|
||||
["%on_error_reduce"] @keyword.exception
|
||||
[
|
||||
"%parameter"
|
||||
"%token"
|
||||
"%type"
|
||||
"%start"
|
||||
"%attribute"
|
||||
"%left"
|
||||
"%right"
|
||||
"%nonassoc"
|
||||
"%public"
|
||||
"%inline"
|
||||
"%prec"
|
||||
] @keyword
|
||||
|
||||
["let"] @keyword.function
|
||||
"%on_error_reduce" @keyword.exception
|
||||
|
||||
[(equality_symbol) ":" "|" ";" ","] @punctuation.delimiter
|
||||
"let" @keyword.function
|
||||
|
||||
[
|
||||
(equality_symbol)
|
||||
":"
|
||||
"|"
|
||||
";"
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"="
|
||||
"~"
|
||||
"_"
|
||||
] @operator
|
||||
|
||||
["=" "~" "_"] @operator
|
||||
(modifier) @operator
|
||||
|
||||
["<" ">" "{" "}" "%{" "%}" "%%"] @punctuation.special
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
"{"
|
||||
"}"
|
||||
"%{"
|
||||
"%}"
|
||||
"%%"
|
||||
] @punctuation.special
|
||||
|
||||
["(" ")"] @punctuation.bracket
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
(old_rule [(symbol)] @function)
|
||||
(new_rule [(lid)] @function)
|
||||
(old_rule
|
||||
(symbol) @function)
|
||||
|
||||
(precedence [(symbol)] @variable.parameter)
|
||||
(new_rule
|
||||
(lid) @function)
|
||||
|
||||
(precedence
|
||||
(symbol) @variable.parameter)
|
||||
|
||||
(funcall) @function.call
|
||||
|
||||
|
|
@ -23,6 +62,11 @@
|
|||
(uid) @constant
|
||||
|
||||
(ocaml_type) @type
|
||||
|
||||
(ocaml) @none
|
||||
|
||||
[(comment) (line_comment) (ocaml_comment)] @comment @spell
|
||||
[
|
||||
(comment)
|
||||
(line_comment)
|
||||
(ocaml_comment)
|
||||
] @comment @spell
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((ocaml) @injection.content
|
||||
(#set! injection.language "ocaml"))
|
||||
(#set! injection.language "ocaml"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue