Commit graph

2608 commits

Author SHA1 Message Date
ObserverOfTime
8dbab59773 feat(powershell): highlight shebang 2024-07-29 09:07:47 +02:00
nvim-treesitter-bot[bot]
2d5133f674 bot(lockfile)!: update d, latex
adapt d injections to breaking grammar change
2024-07-28 09:50:54 +00:00
Omar Valdez
45b3f7a8cf fix(strace): Fix comment injection 2024-07-28 11:44:13 +02:00
Omar Valdez
51bba660a8 refactor(queries): Remove quotes from properties in set! directive 2024-07-28 11:43:41 +02:00
Jonas Dujava
88aa09e6e9 feat(latex): capture left/right math delimiters
Capture math delimiters provided by commands such as
`\left` and `\right`.

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-28 11:16:09 +02:00
Riley Bruins
f97e0de005
feat: add rescript parser and queries (#6671) 2024-07-27 17:34:30 +02:00
Riley Bruins
7cec6219c4 fix(query): properly apply predicate injections
I think these have been broken since the query parser update. Basically
the inner node for the string content was preventing injections because
include-children was not set.
2024-07-27 17:17:26 +02:00
Omar Valdez
2b4881286a feat(luap): Make class captures similar to regex captures 2024-07-27 13:31:21 +02:00
Omar Valdez
886b496763 feat(query): Highlight key in set! directive 2024-07-27 13:29:09 +02:00
Jonas Dujava
e265fec94c fix(latex): environment name should be label
Environment names are captured as `@label` in `(begin)` and `(end)`
nodes, and so should they be when we are defining environments.

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-26 14:11:34 +02:00
Gregory Anders
96c5cb2334 feat(vimdoc): set url attribute for URLs 2024-07-24 21:42:13 +02:00
Dheepak Krishnamurthy
a0732ca9f0 feat(julia): Add syntax highlighting for markdown and bash prefixed_string_literals 2024-07-24 09:14:14 +02:00
Gregory Anders
b1e88723ee feat(html): set url attribute for HTML URLs 2024-07-24 09:13:19 +02:00
Gregory Anders
205102f372 feat(markdown): set url attribute on plain URLs
Setting the url attribute on actual URLs will cause Nvim to use the OSC
8 sequence on the entire URL, which enables terminal emulators to detect
the URL even when it is wrapped.

The (uri_autolink) node must use an #offset! directive to strip the
surrounding <> characters from the URL.
2024-07-24 09:13:12 +02:00
Jonas Dujava
3fa183e34e feat(latex): improve parameters
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-23 09:35:25 +02:00
Jonas Dujava
803e5bd14d fix(latex): more @nospell
Apply `@nospell` to command/label names, paths, etc.
Where appropriate, turn spelling off for the whole node.

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-23 09:00:11 +02:00
Riley Bruins
49452ab703 fix(zig): add some missing highlights 2024-07-23 08:59:50 +02:00
Andrey Chalkin
c5b3560306
feat: add powershell language 2024-07-22 23:14:45 +02:00
Jonáš Dujava
4ee9f12ff5
refactor(latex): deduplicate captures, reorder 2024-07-22 23:12:18 +02:00
DragonBillow
468f6ed66b fix(idl): fix break changes
Signed-off-by: DragonBillow <DragonBillow@outlook.com>
2024-07-22 12:40:27 +02:00
qvalentin
4075376a25 feat(gotmpl,helm): add locals (wip) 2024-07-22 12:33:22 +02:00
qvalentin
dfd047d15f feat(gotmpl,helm): add fold queries 2024-07-22 12:33:22 +02:00
Tyler Miller
2883d0c03f
fix(lua): use @property for keys in table literals (#6956)
`@property` should be used for key-value pairs, while `@variable.member`
is used for field-access/index-expressions. Using different captures
also provides the benefit of allowing the two to be highlighted
differently.
2024-07-21 18:12:27 -07:00
Jonas Dujava
002537a3e3 feat(latex): simplify captures of font changing
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-22 00:07:52 +02:00
Oliver Thomas
733fa85db2 feat(snakemake): add wildcard flag 2024-07-21 11:15:51 +02:00
Jonáš Dujava
625e7e58d0
feat(latex): capture & as @punctuation.delimiter
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-21 10:53:59 +02:00
Tyler Miller
e8d74461da fix(gitignore): hl/capture non-special pattern chars
Capture regular, non-special characters (as `@string.special.path`)
allowing them to be highlighted.
2024-07-20 10:32:01 +02:00
Omar Valdez
b3c54c3188
feat(bash): readline injections (#6947)
* feat(bash): Readline injections

* Update queries/bash/injections.scm

Co-authored-by: Riley Bruins <ribru17@hotmail.com>

---------

Co-authored-by: Riley Bruins <ribru17@hotmail.com>
2024-07-19 21:53:27 -07:00
Jonas Dujava
4e387dd478 feat(latex): capture placeholder as variable
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-19 17:20:44 +02:00
Jonas Dujava
d9ea5035d4 feat(latex): add additional include highlights
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-07-19 14:53:39 +02:00
Christian Clason
35fa869b53 feat(latex): injections for luacode, asy{def} environments 2024-07-18 17:46:01 +02:00
John-Philip Taylor
355af0c8ce
feat: add vhdl parser and queries 2024-07-18 08:46:12 +02:00
Riley Bruins
14dff71d38 feat(wit): add folds, missing highlights
References:

https://github.com/liamwh/tree-sitter-wit/blob/main/grammar.js
79f3646325/crates/extension_api/wit/since_v0.0.4/extension.wit
436ad58923/wit/mqtt.wit
a068bfe064/crates/wasi-nn/wit/wasi-nn.wit
2024-07-17 09:48:23 +02:00
Vladimir Levin
067415e971
feat: add nginx 2024-07-17 09:47:59 +02:00
Dennis van den Berg
0d5e1214a5 feat: add indentation queries for angular 2024-07-17 09:52:47 +09:00
Dennis van den Berg
276c343b6b feat!: update angular parser to new major
BREAKING CHANGE: This changes the capture groups for all Control Flow
statements.
2024-07-17 09:52:47 +09:00
Bryan Kenote
3076b9a98a
fix(facility): add highlight for event keyword 2024-07-16 19:03:58 +02:00
Riley Bruins
4836c1df65 fix(lua): indent functions before they are closed
Fixes #6786
2024-07-16 13:17:36 +02:00
Grace Petryk
f16a775830
feat(python): Improved python indentation (#6859)
* feat: improve python indentation

* use lua-match

* revert concatenated_string changes, handle function def hanging indents

* lint

* add delimiters to param query

* add test cases
2024-07-16 20:13:41 +09:00
Vincent Rischmann
a8c1f36d2c
feat(templ): add folds 2024-07-16 10:19:41 +02:00
zhaown
656ac24233
feat(goctl): add indents 2024-07-10 18:36:01 +02:00
DragonBillow
d5969c481e
feat(idl): update parser and queries (#6901)
Signed-off-by: DragonBillow <DragonBillow@outlook.com>
2024-07-10 14:05:13 +02:00
nvim-treesitter-bot[bot]
c1ad655b6a bot(lockfile): update c_sharp, liquid, mlir, tsx, typescript 2024-07-09 07:28:58 +00:00
再生花
53c79ddc28
fix(php): do not indent after class/enum decl 2024-07-09 10:12:29 +09:00
Wadii Hajji
ebdffa78bd
fix(ruby): highlight "&." as @punctuation.delimiter (#6887) 2024-07-08 06:58:24 -07:00
nvim-treesitter-bot[bot]
66ec1b3c4e bot(lockfile): update editorconfig, fortran, hare, idl, mlir, nim, php, php_only, python, squirrel, tlaplus 2024-07-08 08:51:38 +00:00
Karl Yngve Lervåg
64f6f0ab4e fix(hurl): multiline injection query needs injection.combined
fixes: #6882, https://github.com/pfeiferj/tree-sitter-hurl/issues/10
2024-07-07 18:42:25 +02:00
Liam Woodleigh-Hardinge
b7c0dbbe7d
fix(wit): highlight <> as brackets (#6879) 2024-07-07 08:57:06 -07:00
zhaown
f9aa4f060e
feat: add goctl parser and queries 2024-07-07 17:27:21 +02:00
Pete Matsyburka
ad43c7f19e
feat(ruby): highlights for special methods (#6735) 2024-07-08 00:24:57 +09:00