1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/ocamllex/highlights.scm
2022-04-14 12:01:23 +08:00

30 lines
679 B
Scheme

[(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