Commit graph

1415 commits

Author SHA1 Message Date
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
gbprod
3096e637c8 fix(php): add indent for enums 2022-10-10 23:01:22 +02:00
Alex Pinkus
14edfee545 feat(swift): sync highlight queries with upstream
Upstream highlight queries have added support for Swift regex literals.
This change brings that support to nvim-treesitter.

Also includes some minor reordering of modifiers for logical consistency
(no impact on highlighting behavior).
2022-10-10 23:00:58 +02:00
gbprod
a33858d399 feat(twig): add @spell on comments 2022-10-06 14:23:40 +01:00
gbprod
84e23bd979 Fix php indent for short array declaration 2022-10-06 08:55:11 -04:00
Lampros
dd4e62324a feat(spell) added spell to html-tags text 2022-10-05 15:56:28 -04:00
Matthias Vogelgesang
f051eb2b26 highlights(proto): highlight optional
`optional` came back with protobuf 3.15 as a valid modifier so highlight
it the same way as `repeated`.
2022-10-04 10:09:09 -04:00
gbprod
d8a695a1ac Introduce twig parser
This commit introduce parser, highlights and injections for the
[twig syntax](https://twig.symfony.com)
2022-10-03 10:06:41 +02:00
Christian Clason
5f6f866c86 update vimdoc parser and queries 2022-09-29 08:41:42 +02:00
Stephan Seitz
27cba73df9 indents(wgsl): add indents.scm 2022-09-28 19:25:07 -04:00
Jade Lovelace
aa736f5f36 haskell/highlights: Match pattern as a keyword
Sample:
-- | Smart constructor that deduplicates plugins
pattern IdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState
pattern IdePlugins{ipMap} <- IdePlugins_ (sortOn (Down . pluginPriority) . HashMap.elems -> ipMap) _
  where
    IdePlugins ipMap = IdePlugins_{ipMap_ = HashMap.fromList $ (pluginId &&& id) <$> ipMap
                                  , lookupCommandProvider = lookupPluginId ipMap
                                  }
2022-09-27 21:38:16 -04:00
ShootingStarDragons
0289160c96 feat(slint): <=> operator
Slint have support <=> operator, so add this for highlight,

Next time when lockfile.json is update, then merge this one

Log: slint
2022-09-26 23:55:10 -04:00
Laytan Laats
4303c1af69 highlights(php): add spell 2022-09-26 23:23:21 +01:00
Lewis Russell
37398c7d68 feat(spell): support more languages 2022-09-26 13:47:12 +01:00
Erik Westrup
26105050aa
feat(comment): highlight NOTE as @text.note (#3537) 2022-09-23 17:52:00 +00:00