chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -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

View file

@ -1,2 +1,2 @@
((ocaml) @injection.content
(#set! injection.language "ocaml"))
(#set! injection.language "ocaml"))