diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-03-07 18:31:01 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:52:43 +0100 |
| commit | 080b6476fe0f6c1c6ae6331ad27bbd093bc82716 (patch) | |
| tree | b96f9df9d11a461000695279be9e296d59bb92bf /queries | |
| parent | Add CI hack (diff) | |
| download | nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar.gz nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar.bz2 nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar.lz nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar.xz nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.tar.zst nvim-treesitter-080b6476fe0f6c1c6ae6331ad27bbd093bc82716.zip | |
Fix ocaml queries
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/cpp/locals.scm | 1 | ||||
| -rw-r--r-- | queries/ocaml/highlights.scm | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/queries/cpp/locals.scm b/queries/cpp/locals.scm index 1e60b0e27..2975a1820 100644 --- a/queries/cpp/locals.scm +++ b/queries/cpp/locals.scm @@ -6,7 +6,6 @@ (identifier) @definition.parameter)) (optional_parameter_declaration declarator: (identifier) @definition.parameter) - ;; Class / struct defintions (class_specifier) @scope diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm index 419d7ac7c..454f91960 100644 --- a/queries/ocaml/highlights.scm +++ b/queries/ocaml/highlights.scm @@ -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) |
