feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,41 @@
; 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

View file

@ -0,0 +1,5 @@
((ocaml) @injection.content
(#set! injection.language "ocaml"))
((comment) @injection.content
(#set! injection.language "comment"))