mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Fix ocaml queries
This commit is contained in:
parent
c573cdd0a9
commit
080b6476fe
2 changed files with 4 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
(identifier) @definition.parameter))
|
(identifier) @definition.parameter))
|
||||||
(optional_parameter_declaration
|
(optional_parameter_declaration
|
||||||
declarator: (identifier) @definition.parameter)
|
declarator: (identifier) @definition.parameter)
|
||||||
|
|
||||||
;; Class / struct defintions
|
;; Class / struct defintions
|
||||||
(class_specifier) @scope
|
(class_specifier) @scope
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,8 @@
|
||||||
; Punctuation
|
; Punctuation
|
||||||
;------------
|
;------------
|
||||||
|
|
||||||
(attribute ["[@" "]"] @punctuation.special)
|
;; TODO: this makes nvim segfault: https://github.com/tree-sitter/tree-sitter/issues/968
|
||||||
|
;(attribute ["[@" "]"] @punctuation.special)
|
||||||
(item_attribute ["[@@" "]"] @punctuation.special)
|
(item_attribute ["[@@" "]"] @punctuation.special)
|
||||||
(floating_attribute ["[@@@" "]"] @punctuation.special)
|
(floating_attribute ["[@@@" "]"] @punctuation.special)
|
||||||
(extension ["[%" "]"] @punctuation.special)
|
(extension ["[%" "]"] @punctuation.special)
|
||||||
|
|
@ -142,7 +143,8 @@
|
||||||
|
|
||||||
(value_definition [(let_operator) (and_operator)] @keyword)
|
(value_definition [(let_operator) (and_operator)] @keyword)
|
||||||
|
|
||||||
(prefix_operator "!" @operator)
|
;; TODO: this is an error now
|
||||||
|
;(prefix_operator "!" @operator)
|
||||||
|
|
||||||
(infix_operator ["&" "+" "-" "=" ">" "|" "%"] @operator)
|
(infix_operator ["&" "+" "-" "=" ">" "|" "%"] @operator)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue