mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
28 lines
649 B
Scheme
28 lines
649 B
Scheme
["%parameter" "%token" "%type" "%start" "%attribute" "%left" "%right" "%nonassoc" "%public" "%inline" "%prec"] @keyword
|
|
["%on_error_reduce"] @exception
|
|
|
|
["let"] @keyword.function
|
|
|
|
[(equality_symbol) ":" "|" ";" ","] @punctuation.delimiter
|
|
|
|
["=" "~" "_"] @operator
|
|
(modifier) @operator
|
|
|
|
["<" ">" "{" "}" "%{" "%}" "%%"] @punctuation.special
|
|
|
|
["(" ")"] @punctuation.bracket
|
|
|
|
(old_rule [(symbol)] @function)
|
|
(new_rule [(lid)] @function)
|
|
|
|
(precedence [(symbol)] @parameter)
|
|
|
|
(funcall) @function.call
|
|
|
|
; Not very accurant but does a decent job
|
|
(uid) @constant
|
|
|
|
(ocaml_type) @type
|
|
(ocaml) @none
|
|
|
|
[(comment) (line_comment) (ocaml_comment)] @comment @spell
|