Fix ocaml queries

This commit is contained in:
Stephan Seitz 2021-03-07 18:31:01 +01:00 committed by Kiyan
parent c573cdd0a9
commit 080b6476fe
2 changed files with 4 additions and 3 deletions

View file

@ -6,7 +6,6 @@
(identifier) @definition.parameter))
(optional_parameter_declaration
declarator: (identifier) @definition.parameter)
;; Class / struct defintions
(class_specifier) @scope

View file

@ -107,7 +107,8 @@
; 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)
(floating_attribute ["[@@@" "]"] @punctuation.special)
(extension ["[%" "]"] @punctuation.special)
@ -142,7 +143,8 @@
(value_definition [(let_operator) (and_operator)] @keyword)
(prefix_operator "!" @operator)
;; TODO: this is an error now
;(prefix_operator "!" @operator)
(infix_operator ["&" "+" "-" "=" ">" "|" "%"] @operator)