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
Amaan Qureshi
ad3805f5c3
fix(c)!: update C, CPP parsers and queries
...
also update derived parsers (arduino, cuda, glsl, hlsl, ispc, objc)
2023-07-27 09:51:13 +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
Pham Huy Hoang
9ec2a6bbda
tests: fix failed tests ( #4901 )
...
fix failed tests for tiger, t32 and wgsl
2023-06-05 09:52:36 +09:00
Pham Huy Hoang
1281601cb4
feat: add indents for annotation defs ( #4828 )
...
- Add indent for `@interface` and `@Annotation(...)`
- Add notes for indent queries
2023-06-04 13:28:41 +09: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
Alex Manning
f84de0d6cd
fix(gleam): minor indent fixes
2023-06-04 10:39:20 +09:00
Amaan Qureshi
754b509f26
chore: update Gleam
2023-05-29 11:13:36 -04:00
Matthias Q
dae928b3bb
indents(sql): initial support ( #4857 )
...
* indents(sql): initial support
* indents(sql): fix queries and lua style
2023-05-25 05:53:14 +00: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
Zheng PiaoDan
dba8c8e781
fix(nickel): wrong indent on line after top level comment ( #4792 )
...
* fix(nickel): wrong indent on line after top level comment
Previous incorrect indentation on line after top level comment:
```
# no indent after this comment
{
another = 1
}
```
Expected result:
```
# no indent after this comment
{
another = 1
}
````
2023-05-13 15:03:05 +09:00
Zheng PiaoDan
32d0baae44
feat: add indents.scm for nickel ( #4790 )
2023-05-13 02:49:39 +09:00
Pham Huy Hoang
864b4171de
feat: add swift indents ( #4756 )
2023-05-08 14:53:31 +09: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
Stephan Seitz
39a78192fb
ci: add tests for #4632
...
Issue #4632 might be fixed by
https://github.com/UserNobody14/tree-sitter-dart/pull/41
2023-05-05 14:57:51 +02:00
Pham Huy Hoang
1ca9b938c1
Add Python else elif dedent ( #4618 )
...
* feat(python): add interactive else/elif dedent
* fixup
* add test
2023-04-29 10:35:35 +02: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
Pham Huy Hoang
eedc5198a1
tests: fix deprecated tests ( #4681 )
2023-04-20 15:12:31 +09: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
Pham Huy Hoang
36d4deb294
fix(dart_indent): Fix dart case/default indent
...
add tests
add tests for fallthrough case
add more tests
keep functional tests
2023-04-14 02:28:42 -07:00
Robert Brunhage
ba6c55b203
chore(dart): remove tests for switch
2023-04-13 02:31:49 -07:00
Robert Brunhage
e9de9cedf0
test(dart): add test cases for open issues
2023-04-13 02:31:49 -07:00
Robert Brunhage
e68b81e7fd
fix(dart): review comment
2023-04-13 02:31:49 -07:00
Robert Brunhage
49f6962da4
test(dart): add expected failure file to test
2023-04-13 02:31:49 -07:00
Robert Brunhage
95055abadd
chore: fix formatting issue for dart test
2023-04-13 02:31:49 -07:00
Robert Brunhage
34d1e0e360
Update tests/indent/dart_spec.lua
...
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-04-13 02:31:49 -07:00
Robert Brunhage
978fb2b7be
test(dart): Add an expected failure test
2023-04-13 02:31:49 -07:00
Robert Brunhage
ce3ea7aebe
Revert "fix(dart): function argument indents is inconsistent"
...
This reverts commit ac4020c707 .
2023-04-13 02:31:49 -07:00
Robert Brunhage
ac4020c707
fix(dart): function argument indents is inconsistent
2023-04-11 03:09:53 -07:00
Robert Brunhage
2fe7f969c1
fix(dart): try statement wouldn't indent ( #4623 )
2023-04-10 06:52:50 +00:00
Pham Huy Hoang
9161093fc7
fix(c_indents): fix expression leaking indents
2023-04-08 09:59:21 -07:00
Pham Huy Hoang
474c59dcf1
add test
2023-04-08 09:56:06 -07:00
Pham Huy Hoang
c9ef5e58f7
feat(python): add break/continue dedent
2023-03-25 00:31:57 -04:00
Pham Huy Hoang
1ffa019856
feat(python): add match-case indents
2023-03-25 00:31:57 -04:00
George Harker
d1333dd7e5
refactor(indent)!: Rework indent, aligned indent
...
indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help.
Captures are:
indent.auto
indent.begin
indent.end
indent.dedent
indent.branch
indent.ignore
indent.align
indent.zero
Properties are:
indent.immediate
indent.start_at_same_line
indent.open_delimiter
indent.close_delimiter
indent.increment
indent.avoid_last_matching_next
Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent,
The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this.
Adjust python to use these.
List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles.
Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting.
Includes lucario387:fix-align-indent
2023-03-24 13:07:53 -04: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