Commit graph

1429 commits

Author SHA1 Message Date
Derek Stride
9705316fff
sql: update parser and query (#3820)
Add better `term` nodes in the select expression
2022-11-18 14:20:39 +00:00
ObserverOfTime
a715e93312 feat: add awk 2022-11-16 10:45:19 +01:00
FallenAngel97
34807c605a
rego: update parser and queries (#3805)
Co-authored-by: Oleksii Demennikov <odemennikov@lohika.com>
2022-11-16 09:35:41 +01:00
Carlos Alexandro Becker
eff0d43b49
feat: vhs (.tape) support (#3726) 2022-11-13 12:33:54 +01:00
Christian Clason
692432df29 julia: update queries to parser change 2022-11-12 11:06:59 +01:00
Trard
00b42ac6d4 rust: use @type.qualifier and @storageclass 2022-11-06 18:10:42 +01:00
Cormac Relf
00add7e4b4 highlights(rust): pub(self/super/crate), use super::thing, etc 2022-11-06 14:32:47 +01:00
Cormac Relf
68c3533852 highlights(rust): ["<" ">"] @punctuation.bracket in bracketed_type, for_lifetimes 2022-11-06 14:32:47 +01:00
Cormac Relf
1379119c31 highlights(rust): "for" @keyword everywhere else (for<'a>, HRTBs) 2022-11-06 14:32:47 +01:00
Cormac Relf
15d3849dcf highlights(rust): highlight Type in Type::Associated as @type instead of @namespace 2022-11-06 14:32:47 +01:00
Cormac Relf
8c7ffaf66b highlights(rust): panic!() and assert!() as @exception 2022-11-06 11:34:13 +01:00
Christian Clason
ae104a057f fix: update scheme queries to parser change 2022-11-06 11:32:36 +01:00
Christian Clason
f6bc84dabd fix: update julia queries to parser change 2022-11-06 11:12:20 +01:00
Alvaro Muñoz
57638f8249 feat(ql): add folding queries 2022-11-05 11:18:52 +01:00
Christian Clason
dd89cafd2b fix(rust): update queries to breaking changes
* `if_let_expression` was removed in https://github.com/tree-sitter/tree-sitter-rust/pull/152
* `attributes` were reworked in
  https://github.com/tree-sitter/tree-sitter-rust/pull/163 (no more
  `meta-item`)
2022-11-05 11:09:54 +01:00
Sergio Alejandro Vargas
a4b10b60c1 refactor julia locals 2022-11-02 23:08:11 +01:00
Sergio Alejandro Vargas
27bbb64f87 refactor(highlights/julia): Update definitions
See https://github.com/tree-sitter/tree-sitter-julia/pull/54

Remove a bunch of patterns with `argument_list`. No longer necessary
with `short_function_definition`.

Other minor changes including:

- Add boolean literals See
  https://github.com/tree-sitter/tree-sitter-julia/pull/44
- Update highlights for operators (for bindings, type operators, etc)

- Update lockfile
2022-11-02 23:08:11 +01:00
Christian Clason
e7bdcee167 lua: update queries 2022-11-01 13:41:33 +01:00
Christian Clason
5f85a0a2b5 help: update queries 2022-11-01 13:41:33 +01:00
Folke Lemaitre
a2ff4b42e1 feat: conceal backslash escape 2022-10-30 11:38:42 +01:00
Folke Lemaitre
9ada5f70f9 feat: markdown table highlights and inline 2022-10-29 15:31:35 +02:00
gbprod
287ffdccc1
Add regex injections for php (#3592) 2022-10-28 12:22:16 +00:00
gbprod
053f88f556 feat(git_rebase): add git_rebase parser 2022-10-28 10:36:23 +02:00
Robin Björklin
3ad2aa578a fix(ocaml): change query order for Variables
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-10-25 12:19:50 +02:00
Stephan Seitz
c924128771 highlights(python): add "except*"
Added in https://github.com/tree-sitter/tree-sitter-python/pull/176

About the feature https://realpython.com/python311-exception-groups/#exception-groups-and-except-in-python-311
2022-10-25 12:14:53 +02:00
NullVoxPopuli
c945b34179 Update ecma injections to support recent additions to tree-sitter-javascript/typescript 2022-10-24 14:27:14 -07:00
ギャラ
2d7249409d
fix(bash): Rename ansii_c_string to ansi_c_string. (#3702) 2022-10-23 09:57:56 +00:00
José Luis Lafuente
57e02f7b97 nickel: use @boolean 2022-10-20 12:19:26 -07:00
José Luis Lafuente
470b872d57
parsers: add nickel parser (#3506)
* parsers: add nickel parser

* Update lua/nvim-treesitter/parsers.lua

Co-authored-by: Christian Clason <christian.clason@uni-due.de>

* Update queries/nickel/highlights.scm

Co-authored-by: Christian Clason <christian.clason@uni-due.de>

* fix queries

* Cleanup (based on @theHamsta review)

Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2022-10-19 23:33:31 +00:00
gbprod
1e4b23c266 feat(diff): add diff parser
This commit introduce diff parser.
2022-10-19 16:22:58 -07:00
Munif Tanjim
63d7e456ea highlights(ecma): add pair_pattern punctuation.delimiter 2022-10-17 14:37:36 -07:00
beardedsakimonkey
e218a862a1 locals(lua): fix directive not applying
fixes #3280
2022-10-17 08:21:55 +02:00
Jongwook Choi
1a04759d91 folds(yaml): Fold at the entire node, not at the body. 2022-10-16 16:06:09 -07:00
ObserverOfTime
9b43ab819c highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
ObserverOfTime
0bfeb5484e test(gitattributes): add tests for highlights 2022-10-15 08:44:41 -07:00
ObserverOfTime
b945aa0aab highlights(c): highlight standard streams 2022-10-15 08:12:55 -07:00
ObserverOfTime
90c44df8cb highlights(rst): disable spell for code blocks
injections(rst): add sourcecode directive
2022-10-15 08:12:55 -07:00
ObserverOfTime
c6a81292f7 highlights(dockerfile): add several highlights 2022-10-15 08:12:55 -07:00
ObserverOfTime
b74bd776f2 highlights(bash): add all signal names 2022-10-15 08:12:55 -07:00
ObserverOfTime
d649756f49 highlights(kotlin): add companion keyword 2022-10-15 08:12:55 -07:00
ObserverOfTime
99547308ac highlights(scss): add function statement 2022-10-15 08:12:55 -07:00
ObserverOfTime
2be75015e8 highlights(typescript): add override keyword 2022-10-15 08:12:55 -07:00
ObserverOfTime
f76a6b6c85 highlights(vim): add some more keywords 2022-10-15 08:12:55 -07:00
Maximilian Muecke
f67fd904b7 highlights(r): add spell 2022-10-15 04:03:45 -07:00
Stephan Seitz
53742779e3 highlights(rust): distinguish between "for" in loops and impl_item
Fixes #3641
2022-10-15 04:02:20 -07:00
Christian Clason
9c3a1366bc feat(viml): update queries 2022-10-15 13:01:35 +02:00
gbprod
82767f3f33 feat(php): add queries for bash injections
This commit allows to inject bash syntax into relevant function arguments
and shell expression.
2022-10-12 22:38:03 +02:00
gbprod
3cb46f0c81 feat(php): improve php folds 2022-10-12 22:36:57 +02:00
Fredrik Ekre
ef05f00814 fix(julia): remove highlight query for constants
This patch removes the highlight query for constant identifiers based on
capitalization. This led to inconsistent highlighting since e.g. `AA`
would be a regular identifier, but `AAA` a constant. It is indeed true
that some constants are uppercase only identifiers, but there are also
constants which doesn't follow this pattern. Since there are no rules
about this it seems better to not try to guess.
2022-10-12 18:17:21 +02:00
mliszcz
276718c245 highlights(cpp): add alternative operator names
These keywords are now supported by the parser.
See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179
2022-10-11 14:37:14 +02:00