summaryrefslogtreecommitdiff
path: root/queries/ocamllex/highlights.scm
blob: 51331615946a30481bad1785bf80230931f02498 (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

[(lexer_argument) (regexp_name) (any)] @type

(lexer_entry_name) @function

["as" "let" "and" "parse" "rule"] @keyword

[(eof) (character)] @character
(string) @string

(ocaml) @none

(character_range "-" @operator)
(character_set "^" @operator)
(regexp_alternative ["|"] @operator)
(regexp_difference ["#"] @operator)
(regexp_option ["?"] @operator)
(regexp_repetition ["*"] @operator)
(regexp_strict_repetition ["+"] @operator)

(action ["{" "}"] @punctuation.special)
(character_set ["[" "]"] @punctuation.bracket)
(parenthesized_regexp ["(" ")"] @punctuation.bracket)

["="] @punctuation.delimiter
(lexer_entry "|" @punctuation.delimiter)

(comment) @comment
(ERROR) @error