1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:10:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/menhir/highlights.scm

30 lines
657 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
(ERROR) @error