summaryrefslogtreecommitdiff
path: root/queries
AgeCommit message (Collapse)Author
2022-01-09highlights(llvm): import highlight queries from upstreamStephan Seitz
2022-01-09highlights(go): highlights "~"Stephan Seitz
Follow upstream change https://github.com/tree-sitter/tree-sitter-go/commit/beb36fc9be211046d43a165eb8d885bcde6004a1
2022-01-09folds(bash): fold at `c_style_for_statement`Stephan Seitz
2022-01-08fix(kotlin): use _import for type capturesSal Bakraa
2022-01-08fix(kotlin): use @attribute instead of @annotationSal Bakraa
2022-01-08fix(kotlin): use correct node for when expression foldsSal Bakraa
2022-01-08fix(kotlin): fix typo in locals querySal Bakraa
2022-01-08feat(kotlin): include a folds and a locals querySal Bakraa
2022-01-08fix(kotlin): include regex in injections querySal Bakraa
2022-01-08fix(kotlin): update highlights query to match new parserSal Bakraa
2022-01-08Add highlight for quote markerMDeiml
2022-01-08Better punctuation queries for foamElwardi
2022-01-08Remove OpenFOAM textobjectsElwardi
2022-01-08Highlight builtins as @constant.builtin in OpenFOAM queriesElwardi
2022-01-08Add OpenFOAM parserElwardi
2022-01-08Improve Haskell highlightingAnanda Umamil
2022-01-08Add ninja parser (#2217)Alexandre A. Muller
* Add ninja parser * Add branch main * No need for ftdetect
2022-01-07highlights(make): add all special targetsLewis Russell
2022-01-07highlights(markdown): `image_description` as referencenumToStr
2022-01-07highlights(markdown): image `!` as delimeternumToStr
2022-01-07highlights(markdown): `link_title` as string literalnumToStr
2022-01-07highlights(markdown): image `(` `)` `[` `]` as delemiternumToStr
2022-01-06fix(locals): fix local selectors queryFymyte
Signed-off-by: Fymyte <pierguill@gmail.com>
2022-01-06add(indent): add ignore indent for commentsFymyte
Signed-off-by: Fymyte <pierguill@gmail.com>
2022-01-06fix(indent): fix indent queriesFymyte
Signed-off-by: Fymyte <pierguill@gmail.com>
2022-01-06add(query): fold, indent and locals queries for rasiFymyte
Signed-off-by: Fymyte <pierguill@gmail.com>
2022-01-06improve markdown highlightingAlvaro Muñoz Sanchez
2022-01-05Be more accurate about code block languageMDeiml
2022-01-05highlights(Pascal): Fix highlighting of typesPhilip Zander
A recent change broke highlighting for namespaces & generic types like `foo.bar` and `foo<t>`.
2022-01-05fix: Remove pi_statement from highlight to sync up with upstream changeMads Kjeldgaard
2022-01-05add(rasi): add rasi parserFymyte
Signed-off-by: Fymyte <pierguill@gmail.com>
2022-01-04Remove Python docstring injectionsRafik Draoui
These injections lead to inconsistent highlighting since some edge cases aren't handled (as mentioned in the PR description that introduced the injections [0]). Besides, not all Python projects use reStructuredText syntax in docstrings. If someone still wants to use them, they can extend the base injection queries through `after/queries/` [1] or enable them with `vim.treesitter.set_query`. See also: https://github.com/nvim-treesitter/nvim-treesitter/pull/1204 [0]: https://github.com/nvim-treesitter/nvim-treesitter/pull/917 [1]: https://github.com/nvim-treesitter/nvim-treesitter/tree/ad69e2528ac382b7cbf28f1ac7ee450981734ab0#adding-queries
2022-01-04fix: typo in locals queryJirgn
2022-01-04fix: add eel_array and eel_object to indent queryJirgn
2022-01-04fix: highlights for value_expression start and end as punctuationJirgn
2022-01-04feat: add indent for fusion and afxJirgn
2022-01-04fix: add afx_text to highlights (text)Jirgn
2022-01-04feat: add more local definitionsJirgn
2022-01-04feat: add fold queriesJirgn
2021-12-29highlights(pascal): Highlight variablesPhilip Zander
Assume that any identifiers that aren't function calls, types, fields or constants are variables. This is consistent with the highlighting definitions for other languages. Some themes (e.g. zenbones) make use of this information and they don't look quite right unless we set those groups.
2021-12-24Add support for Pascal (#2153)Isopod
* Add support for Pascal * Pascal: Replace some of the capture groups, use lua-match where possible
2021-12-24Query: update highlightsSantos Gallegos
ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
2021-12-23PHP: highlight unsetSantos Gallegos
Similar to https://github.com/tree-sitter/tree-sitter-php/blob/57f855461aeeca73bd4218754fb26b5ac143f98f/grammar.js#L130-L132 Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/2156
2021-12-23update fusion to version 1.1.1 (#2148)jirgn
* feat(fusion): update tests * fix(fusion): update lockfile * fix(fusion): update to (highlight breaking) version 1.1.0 * update grammer to introduce afx support * update tests and queries * fix: revert lockfile update of unrelated grammars * fix: update to 1.1.1 and fix hightlights * fix: use @tag.attribute capture to match specs Co-authored-by: Jirgn <jirgn76@googlemail.com>
2021-12-22Update queriesSantos Gallegos
- Don't use the old form for predicates - Update some invalid queries
2021-12-21Markdown: update queriesSantos Gallegos
2021-12-19highlights(markdown): separate highlight for header marker and underline (#2129)Michael Chris Lopez
2021-12-18highlights(python): Improve self and cls highlight (#2134)Fabian
1. This function simplifies an unnecessary lua-match usage. 2. Fixes an accidental change, where "cls" was changed to "class" (fe4f320b66) 3. Match functions, which have have a decorator. 4. But exclude @staticmethod 5. Only highlight "cls" as @variable.builtin when the decorator is @classmethod This might be a bit to complicated and some of this not to useful, as this existing rule: ```scm ((identifier) @variable.builtin (#eq? @variable.builtin "self")) ``` overwrites the queries anyway.
2021-12-18Add support for new golang `go.work` filesOmer Tuchfeld
The new golang 1.18 version (currently in beta) [introduced](https://github.com/golang/go/issues/45713) a new file type called `go.work`. This commit adds support for the syntax of that file using the https://github.com/omertuc/tree-sitter-go-work repository That repository is heavily based on previous work in the https://github.com/camdencheek/tree-sitter-go-mod repository, with a few minor changes to make it work on the very similar `go.work` files.
2021-12-17highlights(markdown): highlight link_text as @text.referenceMichael Chris Lopez