mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
70
runtime/queries/ocamllex/highlights.scm
Normal file
70
runtime/queries/ocamllex/highlights.scm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
; 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) @variable.parameter
|
||||
|
||||
(lexer_entry
|
||||
[
|
||||
"="
|
||||
"|"
|
||||
] @punctuation.delimiter)
|
||||
|
||||
; keywords
|
||||
[
|
||||
"and"
|
||||
"as"
|
||||
"let"
|
||||
"parse"
|
||||
"refill"
|
||||
"rule"
|
||||
"shortest"
|
||||
] @keyword
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Misc
|
||||
(comment) @comment @spell
|
||||
5
runtime/queries/ocamllex/injections.scm
Normal file
5
runtime/queries/ocamllex/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((ocaml) @injection.content
|
||||
(#set! injection.language "ocaml"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue