mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:10:05 +08:00
42 lines
691 B
Scheme
42 lines
691 B
Scheme
; Allow OCaml highlighter
|
|
|
|
(ocaml) @none
|
|
|
|
; Regular expressions
|
|
|
|
(regexp_name) @variable
|
|
|
|
[(eof) (any)] @constant
|
|
|
|
(character) @character
|
|
|
|
(string) @string
|
|
(escape_sequence) @string.escape
|
|
|
|
(character_set "^" @punctuation.special)
|
|
(character_range "-" @punctuation.delimiter)
|
|
|
|
(regexp_difference ["#"] @operator)
|
|
(regexp_repetition ["?" "*" "+"] @operator)
|
|
(regexp_alternative ["|"] @operator)
|
|
|
|
; Rules
|
|
|
|
(lexer_entry_name) @function
|
|
(lexer_argument) @parameter
|
|
|
|
(lexer_entry ["=" "|"] @punctuation.delimiter)
|
|
|
|
; keywords
|
|
|
|
["and" "as" "let" "parse" "refill" "rule" "shortest"] @keyword
|
|
|
|
; Punctuation
|
|
|
|
["[" "]" "(" ")" "{" "}"] @punctuation.bracket
|
|
|
|
; Misc
|
|
|
|
(comment) @comment
|
|
(ERROR) @error
|