Marc Jakobi
5240574bcb
feat(haskell): tweak highlights
...
* add cases for `qualified_variable`
* add function defined in terms of composition
2023-11-18 19:02:29 -05:00
Mark McCulloh
17e77749c1
fix(wing): update parser and queries, add maintainer ( #5671 )
2023-11-13 19:04:27 +00:00
Pham Huy Hoang
80f66cdef1
injections(vue): inject typescript instead of js ( #5577 )
...
Interpolations (`{{valid js code}}`) and directive attributes
(`<element :directive="valid js code"`) can also be typescript code,
hence we can inject typescript instead of javascript here and still
be ok with highlights (bar some syntax differences between ts and js)
2023-11-06 11:04:13 +09:00
Marc Jakobi
d33dbdab01
feat(haskell): highlights improvements
...
- Consider functions with only one value on the rhs as variables
- Applied composition: `(f . g) <param>` -> `@function.call`
- View patterns
- `@field` in record update expression
- type_tuple and type_list as variables
- quantifier for `exp_apply (<rhs>)+ (variable)`
- type_tuple and type_list as variables
- Treat signatures with only one value on the rhs as variables
(except for `IO a`) -> Fixes #5505 .
- Remove redundant anchors from signature function queries.
- Move signature function queries to give them higher priority
- Scoped function types
- Add signature query to function with parameters query
2023-10-15 14:32:51 -04:00
Marc Jakobi
783e5fc307
feat(nix): some highlight improvements
...
- functions
- builtin functions with prefix
- add test file
2023-10-12 19:04:55 +00:00
Marc Jakobi
0eb1a0ad1c
fix(haskell): prevent segfault due to anchorless queries ( #5502 )
2023-10-10 17:12:36 +09:00
Marc Jakobi
6276cd9d41
fix(haskell): highlight fixes ( #5470 )
...
* fix(haskell): highlight fixes + merge qualified/unqualified queries
* fix(haskell): lambda params + add exp_record to function.call args
* style: apply PR suggestions
2023-10-05 20:04:46 +03:00
Marc Jakobi
d96c216c54
feat(haskell): highlights improvements + tests ( #5466 )
2023-10-02 10:49:12 +00:00
Christian Segundo
dac6efbaff
fix(dockerfile): bash injection on run instructions
2023-09-17 16:32:21 +02:00
Christian Segundo
831dbb619e
fix(yaml): promql injections block
2023-09-15 12:53:44 +02:00
Noah
e942c720ac
fix(clojure): fix field highlighting ( #5319 )
2023-08-27 10:25:43 +03:00
ObserverOfTime
1ff7985a74
feat(bash): improve highlights
2023-08-24 12:11:16 +03:00
TheLeoP
bbb92b2b8e
fix(lua): luap injection ( #5275 )
...
* fix(lua): luap injection
* test(lua): check for incorrect hlgroup of injected luap
* chore(lua): injections styling
* chore(lua): ignore luacheck for test.lua
2023-08-18 02:17:04 +00:00
Christoph Sax
0fe8fa0bcf
feat(t32): update tests to new node types
2023-07-30 19:29:33 +02:00
Christoph Sax
536c8a3880
feat(t32): re-enable tests
...
- Switch to GitLab mirror repository
- Lock grammar version 2.2.0
- Revert "fix(tests): mark t32 as allowed to fail"
This reverts commit ba223ceecc .
- Revert "fix(tests): remove t32 tests"
This reverts commit 97957a547b .
2023-07-30 19:29:33 +02:00
Christian Clason
97957a547b
fix(tests): remove t32 tests
...
t32 parser is hosted on Codeberg, which has frequent outages that block
unrelated CI. Revert this commit if and when uptime has improved.
2023-07-29 10:56:17 +02:00
Michael Hoffmann
b64ea2ec44
feat(promql,yaml): add parser and yaml injections
...
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-07-18 03:03:11 -04:00
Glib Shpychka
f460cc8ee7
feat(wing): add parser ( #5021 )
...
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-06-29 10:34:46 +00:00
Will Ruggiano
79aedc9675
feat(prisma): highlight views
2023-06-04 00:05:57 -04:00
Ananda Umamil
bee003b880
feat(ecma): convert eligible @keyword.operators
2023-06-04 00:04:40 -04:00
Amaan Qureshi
754b509f26
chore: update Gleam
2023-05-29 11:13:36 -04:00
Christoph Sax
16cce8df58
feat(t32): add indent rules ( #4782 )
2023-05-18 16:40:13 +09:00
Colin Kennedy
4c35c0b75d
Added USD as a language + some queries
...
Added USD highlight unittests
Added USD indentation
Added USD indents.scm file
Added USD indent rules
Simplified USD highlight groups
Added explicit highlight groups
Added newline
Removed after/ftdetect/usda.lua
usd/indents.scm - Added inline comments explaining the nodes
Fixed USD highlight group unittests
Added indentation unittests
Simplified USD `@identifier` highlighting
Added USD documentation highlight group tests
Simplified USD highlight groups
Moved USD `@identifier` and `@namespace` highlights into one place
Removed and simplified tests/query/highlights/usd
Simplified tests/query/highlights/usd more
Removed trailing newline
Combined USD test files
Added `set filetype=usd` to minimal_init.lua
2023-05-15 09:28:11 +02:00
Christian Clason
680807fa6a
highlights(markup): distinguish heading level in queries
...
also add a few queries from Helix and remove controversial
code block conceal in Markdown
2023-05-13 16:50:32 +02:00
Amaan Qureshi
12453e0e3d
Update Capnp ( #4713 )
...
* feat(capnp): update queries from upstream changes
* test: add tests for capnp
* fix indent queries
* ci: fix capnp indent tests
---------
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-05-07 00:12:49 +09:00
Amaan Qureshi
87faf372eb
fix(python,starlark): builtin types should come after types
2023-04-25 03:04:05 -04:00
Amaan Qureshi
01b42a1a57
feat(python,starlark): highlight type conversions as @function.macro
2023-04-25 03:04:05 -04:00
Amaan Qureshi
5ab25d8a1f
fix(python,starlark): update field match pattern
2023-04-25 03:04:05 -04:00
Amaan Qureshi
b39e6bd615
chore(smali): add tests
2023-04-25 02:37:31 -04:00
John Drouhard
dad0864fa3
feat(cpp): improve function.call to support any level of nesting for qualified identifiers
2023-04-15 07:00:14 -07:00
Lucario387
c7b9f68d03
feat(vue): add tsx/jsx injection queries ( #4550 )
...
* feat(vue): add tsx/jsx injection queries
- add a test
- style: format vue/injections.scm
2023-03-24 14:38:19 +00:00
Benny Powers
972da989bc
test: ecma injections
2023-03-22 02:28:21 -04:00
Benny Powers
d228b51cd7
test: html injections
2023-03-22 02:28:21 -04:00
Amaan Qureshi
ffa6efa7f5
feat(julia): add tests for new changes
2023-03-10 03:38:23 -05:00
Amaan Qureshi
4a4c475617
fix(gleam): update tests reflecting recent changes
2023-03-10 02:41:45 -05:00
Pham Huy Hoang
d11dd552db
injections(html): fix faulty css/js injections
...
Group queries to reduce duplicate injection tree
use only regex
2023-03-05 22:34:41 +02:00
Amaan Qureshi
d7cef15b01
feat(ecma): add tests for constants
2023-03-04 05:00:39 -05:00
Amaan Qureshi
5c511dd124
feat(solidity): use maintained parser and update highlights accordingly
2023-02-24 13:05:33 -08:00
Kiyoon Kim
7eb5f1a2e3
properly replace deprecated tsutils functions
2023-02-12 14:26:14 -08:00
lucario387
85d9534491
allow negative assertion in injection tests ( #4107 )
...
* tests(vue, svelte): strengthen tests
* fix(html, vue, svelte): fix wrong test format
* allow negative assertions in injection tests
2023-01-07 11:22:20 +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
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
Stephan Seitz
ab414f8b1c
ci: allow negative assertions in tests
2023-01-01 15:32:07 +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
58c0d78de8
r: update highlights
2022-12-31 13:50:47 +01:00
Lucario387
f5d517f4a7
Fix(vue): Invalid match queries
2022-12-25 17:43:25 +01:00
Lucario387
bbd7ecb25d
add test file
2022-12-25 14:58:33 +01:00
xasc
2d48cbc831
feat(t32): initial support
2022-12-21 23:57:06 +01:00