summaryrefslogtreecommitdiff
path: root/queries/ocaml
AgeCommit message (Collapse)Author
2022-10-25fix(ocaml): change query order for VariablesRobin Björklin
By moving the Variables query higher it gives the @variable capture group a lower precedence when highlighting. This makes it possible to distinguish between @function and @variable.
2022-05-06highlights(ocaml): highlight units as suchPau Ruiz Safont
Units were shadowed by the punctuation highlights in all situations. Restrict the context where parentheses are highlighted as punctuation so () can be highlighted as constants. Signed-off-by: Pau Ruiz Safont <unduthegun@gmail.com>
2021-12-02OCaml string format specifiersDawid Zych
For format specifiers use @string.special instead of @punctuation.special.
2021-12-01OCaml use @constant.builtin for built in constantssilenc3r
2021-07-06Use `@keyword.function` consistentlySergio Alejandro Vargas
2021-06-25Use #any-of? instead of #match? where posibleJoakker
2021-05-11highlights(ocaml): add hash and sign operatorsPau Ruiz Safont
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-03-16Re-add OCaml query that lead to crash before tree-sitter fixStephan Seitz
Ref: https://github.com/tree-sitter/tree-sitter/issues/968#issuecomment-792932744
2021-03-16Fix ocaml queriesStephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-02-28highlights(ocaml): change order or capturesPau Ruiz Safont
This because the later captures have more priority in neovim, not less like in upstream. This fixes highlighting highlighting for let* and +, for example.
2021-02-28highlights(ocaml): add unit and pretty_printing_indicationPau Ruiz Safont
2020-10-10fix(highlights): Add TSNamespace highlightStephan Seitz
Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
2020-10-04fix(ocaml): highlight characters as suchPau Ruiz Safont
2020-09-21Add OCaml foldsPieter Goetschalckx
2020-09-21Improve OCaml localsPieter Goetschalckx
2020-09-21Improve OCaml highlightsPieter Goetschalckx
2020-09-19ocaml: follow upstream for highlightsPau Ruiz Safont
2020-09-19ocaml: follow upstream for highlightsPau Ruiz Safont
2020-09-12fix ocaml highlightsPau Ruiz Safont
Function matching was wrongly parenthesized, parameter detection was too eager and it was wrongly matching all + and - as delimiters
2020-09-11maintenance(ocaml): adapt queries to nvim-treesitterPau Ruiz Safont
2020-09-11feat(queries): pull ocaml queries from upstreamPau Ruiz Safont
2020-09-06fix: ocaml highlightPau Ruiz Safont
The string.special group was removed from highlight.lua, replace its uses by the string group.
2020-09-05Fix filenamePieter Goetschalckx
2020-08-24feat(highlights): add ocamlPau Ruiz Safont