mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
29
runtime/queries/menhir/highlights.scm
Normal file
29
runtime/queries/menhir/highlights.scm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
["%parameter" "%token" "%type" "%start" "%attribute" "%left" "%right" "%nonassoc" "%public" "%inline" "%prec"] @keyword
|
||||
["%on_error_reduce"] @exception
|
||||
|
||||
["let"] @keyword.function
|
||||
|
||||
[(equality_symbol) ":" "|" ";" ","] @punctuation.delimiter
|
||||
|
||||
["=" "~" "_"] @operator
|
||||
(modifier) @operator
|
||||
|
||||
["<" ">" "{" "}" "%{" "%}" "%%"] @punctuation.special
|
||||
|
||||
["(" ")"] @punctuation.bracket
|
||||
|
||||
(old_rule [(symbol)] @function)
|
||||
(new_rule [(lid)] @function)
|
||||
|
||||
(precedence [(symbol)] @parameter)
|
||||
|
||||
(funcall) @function.call
|
||||
|
||||
; Not very accurant but does a decent job
|
||||
(uid) @constant
|
||||
|
||||
(ocaml_type) @type
|
||||
(ocaml) @none
|
||||
|
||||
[(comment) (line_comment) (ocaml_comment)] @comment
|
||||
(ERROR) @error
|
||||
2
runtime/queries/menhir/injections.scm
Normal file
2
runtime/queries/menhir/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((ocaml) @injection.content
|
||||
(#set! injection.language "ocaml"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue