Commit graph

1604 commits

Author SHA1 Message Date
Matthew Gramigna
622baacdc1
parsers: Add FHIR Shorthand (FSH) (#4052) 2023-01-18 17:58:45 +00:00
Chris Kipp
28aa6ba554
scala: add interpolator query (#4175) 2023-01-18 12:06:32 +01:00
Corentin Brunel
c500926755
c_sharp: update parser and queries (#4169)
Remove "nameof" from @keyword.operator

Co-authored-by: cbrunel <cbrunel@nomadis.co>
2023-01-16 17:49:26 +00:00
Chris Kipp
1c89f9b5bc sync with latest Scala and add binding 2023-01-15 09:46:06 -08:00
Stephan Seitz
372177fb99 highlights(haskell): don't match True|False in other identifiers
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
Co-authored-by:  Guillaume Bouchard <guibou@users.noreply.github.com>
2023-01-14 14:29:00 -08:00
Ananda Umamil
e4042553bd highlights(elm): fix boolean literals 2023-01-14 14:02:15 -08:00
Ananda Umamil
0b69c4ae52 highlights(haskell): special sigils and operators 2023-01-14 13:11:49 -08:00
Chris Kipp
add6f9abe2 refactor(scala): update the Scala highlight queries
There has been a lot of changes recently to the Scala grammar and we've
been merging in a handful of things before syncing the actual generated
parser. We are currently at a stage where we're going to sync
everything, but there are some breaking changes that are included in
https://github.com/tree-sitter/tree-sitter-scala/pull/135, so when that
commit gets synced here stuff will break. We've taken the queries that
existed here and have been building off of them in the actual upstream
repo. This will hopefully make the transition smooth and updates the
queries to ensure that there is no breakage. It's recommended to wait
until that pr is merged, synced here, and then merge this in around the
same time.

Co-authored-by: eugene yokota <eed3si9n@gmail.com>
Co-authored-by: Anton Sviridov <keynmol@gmail.com>
2023-01-14 12:56:56 -08:00
Pham Huy Hoang
f669924df2 indents(c): update if cases 2023-01-14 04:52:21 -08:00
Pham Huy Hoang
2f5deed456 indents(c): Refactor indent queries 2023-01-14 04:52:21 -08:00
Ananda Umamil
5ac2c92060 highlights(kotlin): package keyword and declaration 2023-01-14 12:06:51 +01:00
Christian Clason
7e4a7c4508 markdown: add strikethrough and blockquote captures 2023-01-14 11:52:25 +01:00
Saurabh Charde
51d220e0bd feat(scss): add known at-rules to keyword list 2023-01-13 02:46:16 -08:00
Stephan Seitz
bf5be49d99 fix(nickel): follow upstream change in https://github.com/nickel-lang/tree-sitter-nickel/pull/13/files#diff-d485a982e458ef8da2cc203585065b7542665cb80b78d230b1e8f77ea25825d4 2023-01-11 21:49:29 +01:00
figsoda
332fd5338f injections(nix): remove @combined 2023-01-11 21:27:02 +01:00
figsoda
121044f0b7 fix(nix): reduce injection false positives 2023-01-11 21:27:02 +01:00
Ananda Umamil
1298d9ba3b highlights(haskell): function and variable bindings 2023-01-11 20:07:16 +01:00
Stephan Seitz
3df5313424 highlights(wgsl): comment -> {line,block}_comment 2023-01-10 10:07:08 +01:00
Cameron
db73045a16 Update indents.scm 2023-01-09 22:17:50 +01:00
Amaan Q
5b8b711926 refactor: move method and end_method to @keyword.function 2023-01-09 21:24:54 +01:00
Amaan Q
d13a0d563b fix: character_literal is no longer unsupported :) 2023-01-09 21:24:54 +01:00
Amaan Qureshi
1735990aa9 feat: add character_literal query
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-01-09 21:24:54 +01:00
Amaan Q
e1f2bb2fcf feat: add smali query 2023-01-09 21:24:54 +01:00
John Drouhard
ed021ac3af injections(cpp): add injections for raw string literals
the delimiter describes the language to use for the injection content

```cpp
auto python_code = R"python(
  import os

  if __name__ == '__main__':
    print(os.name)
)python";
```
2023-01-09 21:41:13 +02:00
Chinmay Dalal
fa8736c94a folds(fennel): add let, fn, let_clause, quoted_list, local, global folds 2023-01-09 10:40:53 +01:00
Chinmay Dalal
166efb25c1 folds(fennel): add fennel folds 2023-01-09 10:29:10 +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
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
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
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
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
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
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
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
Ananda Umamil
e5dd204291 highlights(haskell): lambda and function with type signature 2022-12-29 21:04:14 +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
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