blob: 64789ee495f0fcba703f32ecb2e56f82810c75fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
["%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
|