Riley Bruins
01a92da438
fix(rust): highlight parameters with ref in definition
2024-11-03 11:46:40 +01:00
Riley Bruins
679883ad31
feat(gleam,luau): use @keyword.type captures ( #7181 )
2024-09-26 09:09:41 +02:00
Riley Bruins
e090c5b22d
feat(wing): add many missing highlights
...
...as well as some fold and injection queries.
2024-09-02 09:55:48 +02:00
Caleb White
ec8776ed9e
feat(php): php 8.4 support ( #6741 )
...
* chore(php): update maintainers
* feat(php): update php rules, highlight imported functions/consts
* feat(php): indent inside property hooks
* chore: update php and php_only revision
2024-08-18 12:30:04 +02:00
Riley Bruins
558c7ad7bf
fix(lua): proper indent after multiline string arg
2024-08-05 10:07:41 +02:00
Riley Bruins
09bad640e4
fix(query): proper indentation after quantifiers
2024-08-02 22:45:14 +09:00
Oliver Thomas
65310b64ee
fix: prevent double indent from pipes
2024-07-31 11:23:46 +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
Christian Clason
f649c2ff75
fix(php): correct line endings
2024-07-17 15:45:25 +02:00
Dennis van den Berg
0d5e1214a5
feat: add indentation queries for angular
2024-07-17 09:52:47 +09: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
再生花
53c79ddc28
fix(php): do not indent after class/enum decl
2024-07-09 10:12:29 +09:00
Riley Bruins
55a13862cd
feat(nix): indentation queries
2024-07-05 15:13:25 +02:00
Riley Bruins
fa611f612a
fix(ecma): indent single-line if statements ( #6846 )
...
Fixes #5898 .
2024-07-04 11:13:16 +09:00
Riley Bruins
f0e3b5c5fe
fix(r): resolve highlight regressions
2024-06-29 09:26:53 +02:00
Phạm Huy Hoàng
3e535e826d
fix(r): adapt indent queries
...
- Anchor parameter query. There's no need for multiple indent.align
captures
- Narrow down binary_operator indent.begin. From tree-sitter-r corpus
and highlight tests, this seems to be appropriate.
2024-06-28 18:13:12 +02:00
Christian Clason
5373c90c55
feat(r)!: update parser and queries
2024-06-27 15:31:41 +02:00
Louis Pilfold
09953e394b
fix(gleam): remove incorrect builtin highlight ( #6757 )
2024-06-17 07:23:06 -07:00
Riley Bruins
f9773e4a5e
test: fix tests broken after 0.10 update ( #6714 )
2024-06-01 12:33:56 +09:00
Christian Clason
3d268f9db4
fix: adapt to Nvim 0.11 deprecations
2024-05-17 17:16:44 +02:00
Caleb White
6f54846f2b
feat(php): add highlights for scoped_property_access
2024-05-14 00:05:03 -04:00
Marc Jakobi
da0efd7398
fix(haskell): update queries and tests for rewritten parser ( #6580 )
2024-05-07 07:27:44 +00:00
Riley Bruins
f58cae6c22
feat: more @keyword.type captures
2024-05-01 09:59:50 +02:00
Riley Bruins
28a914eb57
fix(php): parameter and operator touch-ups
2024-04-25 12:04:50 +02:00
Mark McCulloh
40e8c92f99
fix(wing): update to new repo ( #6446 )
2024-04-14 15:53:37 +00:00
Sergio A. Vargas
d2f4c78303
fix(julia): adapt queries to grammar changes ( #6429 )
2024-04-14 14:23:46 +02:00
Christian Clason
bfa217af76
Revert "ci(tests): drop flaky wing parser tests"
...
This reverts commit f08a9d97f7 .
(Fixed by skipping bindings when generating.)
2024-04-14 13:36:22 +02:00
Christoph Sax
f22f024e78
feat(t32): update queries from upstream ( #6440 )
...
Adds support for new node type `elif_block`.
2024-04-14 12:58:21 +02:00
Christian Clason
f08a9d97f7
ci(tests): drop flaky wing parser tests
2024-04-13 20:04:38 +02:00
Riley Bruins
e9321bb914
feat(nix): misc cleanups + comment injection ( #6418 )
...
* fix(nix): highlight strings within interpolations
* feat(nix): move `derivation` to function.builtin
* fix(nix): removes all `priority` workarounds
* feat(nix): arbitrary injections using `#` comments
2024-04-09 14:20:26 +09:00
ganhaque
1b050206e4
fix(rust): indentation in multi-line tuple pattern ( #6402 )
...
* fix(rust): indentation in multi-line tuple pattern
* test(indent): rust - add test for tuple pattern indent
2024-04-04 15:12:31 +00:00
Caleb White
4ebf4ca4fa
chore(php): trim down tests
2024-03-27 08:29:44 +01:00
Caleb White
7d938c1c72
fix(php): fix use_{as,instead_of}_clause highlights
2024-03-27 08:29:44 +01:00
Caleb White
3400788705
feat(php): add highlight tests
2024-03-27 08:29:44 +01:00
Noah
03f650705c
Update Clojure highlights to be metadata aware ( #6213 )
2024-03-19 22:10:41 +01:00
Caleb White
143ca5ce17
feat(php): improve indents in return statements & chained methods
2024-03-16 20:50:13 -04:00
Jaehwang Jung
dccf31f9b1
feat(highlights)!: @keyword.storage → @keyword.modifier
2024-03-16 20:51:16 +08:00
Jaehwang Jung
998b230a77
feat(highlights)!: keyword @type.qualifier → @keyword.modifier
2024-03-16 20:51:16 +08:00
Luckas
904f373fc4
feat(dot): add indents queries
...
* feat(dot): add indents queries
* add: tests
* fix: test
2024-03-15 09:18:33 +09:00
再生花
e73c775aa9
feat(swift): add init/deinit indents
...
Signed-off-by: Phạm Huy Hoàng <hoangtun0810@gmail.com>
2024-03-13 11:09:42 +08:00
Phạm Huy Hoàng
63ca90eaa3
feat(swift): add will/didSet indent
...
Fixes CI error in PR.6237
2024-03-04 00:05:45 +09:00
Christian Clason
99ddf57353
feat(highlights)!: enforce documented captures ( #6232 )
...
Problem: Allowing undocumented "secret" (sub)captures makes it harder
to write comprehensive colorschemes and catch inconsistent captures.
Solution: Only allow captures listed in CONTRIBUTING.md. Add useful
(cross-language) subcaptures and drop language-specific or too niche
ones.
Follow-up: Adding further `*.builtin` captures and changing queries to
use them.
Language-specific subcaptures should instead be added in user config or
a custom language plugin.
2024-03-03 11:00:11 +01:00
Riley Bruins
455f6586ba
feat(query): indents that reflect the formatter ( #6154 )
...
* feat(query): indents that reflect the formatter
Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
2024-02-21 18:47:09 +09:00
Riley Bruins
d96bf9d522
fix(python): better try-except indentation ( #6097 )
2024-02-15 00:39:59 +07:00
Phạm Huy Hoàng
1c72e797ba
fix(yuck): comment out start-of-line parens
2024-02-13 17:58:36 +01:00
Riley Bruins
127cf25737
feat(latex): pre-compiled header highlights, tests
...
Also moves comment highlights to the very end to make them more
future-proof.
2024-02-06 10:29:09 +01:00
Jędrzej Boczar
6548bb64c1
feat(meson): add indents.scm
2024-01-20 10:48:56 +01:00
ObserverOfTime
fa38f4e6f9
fix(highlights): improve member/property distinction
2024-01-19 16:58:37 +01:00