Commit graph

3475 commits

Author SHA1 Message Date
Cameron
7eb76dc290 Create indent-rescue.rb 2023-01-06 19:48:42 +01:00
Cameron
4ac38ee2d1 Update indents for Ruby
Add `rescue` and `ensure` as a @branch captures for ruby
2023-01-06 19:48:42 +01:00
Chinmay Dalal
68e8181dbc folds(rust): add array_expression 2023-01-05 20:37:14 +01:00
ObserverOfTime
b156939461 ci: properly fix lockfile action 2023-01-04 17:35:52 +01:00
Lewis Russell
27d8fdc6a6 fix: do not force syntax=ON on detach
syntax is now restored in vim.treesitter.stop() so we don't need to
force it on here.
2023-01-04 14:08:28 +00:00
Josef Litoš
46cace42fa highlights(markdown_inline): added ')' to links 2023-01-04 12:17:33 +01:00
Pham Huy Hoang
2cd89b4bc3 fix(jsx): add missing indent end mark to elements 2023-01-04 12:14:03 +01:00
Pham Huy Hoang
8c71c6c5ed fix(html): fix wrong indents for script/style tags 2023-01-03 17:50:44 +01:00
Lucario387
28baed7698 refactor(svelte): Remove duplicated queries
These injection queries are defined already in html_tags, remove them

Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-01-03 12:05:10 +01:00
Lucario387
6f4b9b190b refactor(vue, html): Update injections
Update html_tags injections so that html/vue/svelte parsers can use
it without having a script/style tag being captured twice

Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-01-03 12:05:10 +01:00
GitHub
7951eb53f8 Update parsers: scala 2023-01-03 11:57:47 +01:00
Stephan Seitz
ac9b33d5bd ci: trim final "] when parsers get added in update-lockfile.yml
See https://github.com/nvim-treesitter/nvim-treesitter/pull/4066

The diff will look different when a whole parser gets added:
```
@ ["gleam","revision"]
- "cfcbca3f8f734773878e00d7bfcedea98eb10be2"
+ "3eb2e1783f3bf6f85c16cdd150e2f256b2f6844e"
@ ["nix","revision"]
- "6b71a810c0acd49b980c50fc79092561f7cee307"
+ "1b69cf1fa92366eefbe6863c184e5d2ece5f187d"
@ ["wgsl_bevy"]
+ {"revision":"c81dc770310795caea5e00996505deba024ec698"}
```

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-01-03 11:56:53 +01:00
GitHub
408d08810d Update parsers: gitcommit, norg, v 2023-01-03 11:32:39 +01:00
github-actions[bot]
12e95e160d
Update parsers: v (#4077)
Co-authored-by: GitHub <noreply@github.com>
2023-01-02 10:10:56 +00:00
github-actions[bot]
ed824394f5
Update parsers: help (#4075)
Co-authored-by: GitHub <noreply@github.com>
2023-01-02 09:50:13 +00:00
Ananda Umamil
b67822bf58 highlights(elm): zero args constructor pattern matching 2023-01-01 20:01:49 +01:00
Manuel Barros
3a621b9a83 highlights(haskell): Fix partially applied infix functions 2023-01-01 18:23:57 +01:00
github-actions[bot]
612a762455
Update parsers: latex (#4072)
Co-authored-by: GitHub <noreply@github.com>
2023-01-01 15:07:05 +00:00
GitHub
ccc42a96d9 Update parsers: latex 2023-01-01 15:58:00 +01:00
Stephan Seitz
6a31d9086e highlights(rust): use @namespace for [(crate) (self) (super)]
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
2023-01-01 15:32:07 +01:00
Stephan Seitz
ab414f8b1c ci: allow negative assertions in tests 2023-01-01 15:32:07 +01:00
Ananda Umamil
4f3aa2af44 highlights(elm): improve highlights 2023-01-01 15:30:10 +01:00
Stephan Seitz
b019eb3032 indents(c): treat "#ifndef", "#elif" like "#ifdef" 2022-12-31 16:27:05 +01:00
GitHub
168567efb8 Update parsers: wgsl_bevy"] 2022-12-31 15:31:24 +01:00
Stephan Seitz
5afa9e5040 highlights(wgsl): highlight "->" for return types as @punctuation.delimiter 2022-12-31 15:20:02 +01:00
Stephan Seitz
817531ce6f parsers: add wgsl_bevy
This adds an extension of tree-sitter-wgsl that understands
[Bevy's](https://bevyengine.org/) preprocessor directives.
2022-12-31 15:19:48 +01:00
Stephan Seitz
29304e16bb fix: show errors when reload after installation fails 2022-12-31 13:59:18 +01:00
Stephan Seitz
0598450eb8 feat: also reload parsers after uninstallation 2022-12-31 13:59:18 +01:00
Stephan Seitz
c2301adfcb highlights(cuda): add missing "__global__" 2022-12-31 13:58:33 +01:00
Pedro Castro
6d2b0bd381 move 'in' to repeat 2022-12-31 13:50:47 +01:00
Pedro Castro
ec3d4af104 fix test 2022-12-31 13:50:47 +01:00
Pedro Castro
966393dc38 r: move inf to constant.builtin 2022-12-31 13:50:47 +01:00
Pedro Castro
58c0d78de8 r: update highlights 2022-12-31 13:50:47 +01:00
Stephan Seitz
ae5ab287bb docs: link to Matrix instead of Zulip 2022-12-31 13:48:23 +01:00
github-actions[bot]
f00d610256
Update parsers: qmljs (#4064)
Co-authored-by: GitHub <noreply@github.com>
2022-12-31 10:21:11 +00:00
Michael Hoffmann
ee3e9f4dc0 feat(hcl,terraform): split terraform from hcl, add specialized queries for tf
This enables us to have different queries for
terraform and general hcl. It solve the situation
where other dialects of hcl (nomad, packer, etc)
might use a terraform keyword and get highlighted
out of place.
2022-12-29 22:18:41 +01:00
GitHub
c06baac6a1 Update parsers: astro, ocaml, ocaml_interface 2022-12-29 21:22:14 +01:00
Ananda Umamil
e5dd204291 highlights(haskell): lambda and function with type signature 2022-12-29 21:04:14 +01:00
GitHub
fb36ed4c9e Update parsers: tlaplus 2022-12-27 18:00:12 +01:00
Stephan Seitz
41e013dd9a ci: improve CI output on query error 2022-12-27 17:52:29 +01:00
Christian Clason
fa09c1f3ef Update slint indent queries 2022-12-27 17:52:29 +01:00
Jared Moulton
55a9e3bbbc Update slint highlight queries for rewrite 2022-12-27 17:52:29 +01:00
Jared Moulton
57e9e48f88 update lockfile (slint) 2022-12-27 17:52:29 +01:00
Sergio A. Vargas
0cb637ca9f
julia: update parser and highlights (#4035)
- Update patterns for type definitions:
  The grammar was updated to parse `abstract type` and `primitive type`
  as a single token.
- Update @symbol capture to highlight quoted operators as symbols.
- Add pattern to highlight adjoint operator.
- Update patterns and captures for:
  - "keyword" operators (in, isa, where)
  - type operators (<:, >:)
  - Parametrized types.
2022-12-27 10:27:22 +01:00
Stephan Seitz
7c9ddb72d1 feat: allow hot-reloading parser after installation 2022-12-26 15:36:16 +01:00
Stephan Seitz
f0a1c3df24 fix: require_language is needed after installation to update Vim's language table
Fixes #4026
2022-12-26 15:36:16 +01:00
Stephan Seitz
cf60564891 fix: do vim.treesitter.start() on highlight module attach
Fixes #4026
2022-12-26 13:42:11 +01:00
GitHub
a2d7e78b07 Update parsers: hlsl 2022-12-25 17:53:07 +01:00
Lucario387
f5d517f4a7 Fix(vue): Invalid match queries 2022-12-25 17:43:25 +01:00
Lucario387
8abb563ca9 Fix(vue): Invalid match queries 2022-12-25 17:43:25 +01:00