Pedro Castro
3606f8efbb
indents(r): add pipe test
2022-01-29 15:25:56 +01:00
Pedro Castro
d8f85649b8
indents(r): add tests runner
2022-01-29 15:25:56 +01:00
Pedro Castro
ca279928e3
indents(r): add aligned_indent test
2022-01-29 15:25:56 +01:00
Pedro Castro
74adb6bd30
indents(r): remove pipe test
2022-01-29 15:25:56 +01:00
Pedro Castro
995f462898
indents(r): add tests
2022-01-29 15:25:56 +01:00
Stephan Seitz
3f876efce5
tests: use main parsers instead of nvim-treesitter parser for tests
2022-01-29 13:11:56 +01:00
Stephan Seitz
e4675bc410
highlights(c/cpp): highlight case labels as constants
2022-01-29 13:11:56 +01:00
Stephan Seitz
974e2181a0
highlights(cpp): fix function highlighting of Foo::bar::baz()
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
2022-01-29 12:40:35 +01:00
Stephan Seitz
c4e3564ea3
highlights(python): add support for pattern matching
...
Fixes #2080
Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140
2022-01-28 19:11:20 +01:00
Stephan Seitz
ae4c982f94
indents(php): align with C indentation
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
2022-01-24 22:33:41 +01:00
Ryan Roden-Corrent
f67eb83be5
feat(indent): Implement basic indent for gdscript.
...
Indent is not handled correctly when adding new lines.
It seems that functions/loops/etc. are not recognized until they have at
least one indented block.
For example, if you enter a newline after `func foo():`, the cursor will
not be indented. If you manually indent and add a line like `pass`,
e.g.:
```
func foo():
pass
```
now any insertions above or below `pass` will be indented correctly.
This might be an issue with the grammar, as it seems to apply to highlights
as well.
The following will not be highligted
```
func foo():
```
However, the following will be:
```
func foo():
pass
```
2022-01-24 13:11:01 +01:00
Munif Tanjim
fb7b6a266e
test(indent): rust - add test for indented comment
2022-01-21 16:40:36 +01:00
Munif Tanjim
c2e3938510
fix(indent): rust - support newline after closing brace
2022-01-21 16:40:36 +01:00
Munif Tanjim
7a6d93ca5b
feat(indent): ecma - support common use-cases
2022-01-21 16:40:36 +01:00
Munif Tanjim
782e299cd6
fix(indent): c/cpp - support newline after closing brace
2022-01-21 16:40:36 +01:00
Munif Tanjim
8f9d4ada35
feat(indent): ecma - support try_catch and if_else
2022-01-21 16:40:36 +01:00
Munif Tanjim
bb60706433
feat(indent): support @aligned_indent for python
2022-01-21 10:51:51 +01:00
Munif Tanjim
c0110e34aa
feat: rewrite indent module
2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa
feat: improve indent module
...
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's ( #2272 )
...
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua
BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
Stephan Seitz
668de0951a
chore: remove swift tests for now (cause CI failure)
...
Will try to add them again in a follow up.
2022-01-18 22:09:21 +01:00
Stephan Seitz
cc1890528f
highlights(swift): add more @operators and implicit keyword
2022-01-18 22:09:21 +01:00
Stephan Seitz
a3c86fe843
highlights(swift): highlight punctuation
...
"?" is still missing:
https://github.com/tree-sitter/tree-sitter-swift/issues/38
2022-01-18 22:09:21 +01:00
Stephan Seitz
6a61461d18
highlights(hack): add keywords implements
2022-01-17 10:53:35 +01:00
Stephan Seitz
cc0bdabe5f
highlights(hack): extend queries add tests
2022-01-17 10:53:35 +01:00
Stephan Seitz
db01c82b08
highlights(cpp): add support for concepts
...
Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
2022-01-16 22:19:34 +01:00
Stephan Seitz
4cf688ee68
ci: fix markdown tests
2022-01-16 19:14:52 +01:00
Stephan Seitz
dada29a1e5
fix(ci): make highlight test working with markdown
2022-01-16 17:16:54 +01:00
antosha417
d5147a608a
add highlights tests
2022-01-16 14:59:39 +01:00
numToStr
0f01bbb1c2
chore(markdown): highlights test
2022-01-07 11:14:29 +01:00
Philip Zander
b058034029
highlights(Pascal): Fix highlighting of types
...
A recent change broke highlighting for namespaces & generic types like
`foo.bar` and `foo<t>`.
2022-01-05 20:59:26 +01:00
jirgn
6b5b37cc3e
update fusion to version 1.1.1 ( #2148 )
...
* feat(fusion): update tests
* fix(fusion): update lockfile
* fix(fusion): update to (highlight breaking) version 1.1.0
* update grammer to introduce afx support
* update tests and queries
* fix: revert lockfile update of unrelated grammars
* fix: update to 1.1.1 and fix hightlights
* fix: use @tag.attribute capture to match specs
Co-authored-by: Jirgn <jirgn76@googlemail.com>
2021-12-23 11:18:15 -05:00
Stephan Seitz
881cb5b8f2
ci(injection tests): don't consider root language an injection
2021-12-20 18:16:45 +01:00
Stephan Seitz
a3862c9802
ci: add injection tests
2021-12-20 18:16:45 +01:00
numToStr
63630ec082
highlights(lua): next as builtin function
2021-12-13 20:22:05 +01:00
Jirgn
f51aa0b75e
feat(fusion): update tests
2021-12-06 21:51:53 +01:00
Stephan Seitz
28cc92a2f6
highlights(bash): highlight "((" "))"
2021-11-28 15:01:24 +01:00
oxalica
6407d54092
fix: off-by-one errors in indent calculation
2021-11-28 14:52:06 +01:00
elianiva
e64fe530cd
test(prisma): add initial test
2021-11-28 00:36:24 +01:00
Jirgn
096f0e91be
fix: incorrect hightlight groups
2021-11-26 22:04:59 +01:00
Jirgn
a0ad73493e
fix: typo in highlight group punct(u)ation
2021-11-26 22:04:59 +01:00
Jirgn
979c32493d
feat: add fusion grammar and highlights
2021-11-26 22:04:59 +01:00
numToStr
bbbb2f1f32
chore: add test for ecma private fields & methods
2021-11-25 15:42:24 +01:00
Stephan Seitz
b004d74bb5
Add assert that "highlight-assertions" is executable
2021-11-24 17:29:55 +01:00
Stephan Seitz
c7634f16de
Mark failing indent tests to add them to CI
...
Expected failures should be monitored so that we don't have regressions
and also remove failure marks when they are resolved.
2021-11-24 17:29:55 +01:00
Stephan Seitz
53ba38327e
Add highlight tests
2021-11-24 17:29:55 +01:00
Cezary Drożak
e87ed0fdaa
feat: add "experimental" key to parsers
...
feat(ci): mark parsers as experimental in README
2021-10-07 22:43:09 +02:00
partizan
cd4c0a7526
test: Add tests for is_in_node_range ( #1756 )
...
* fix: is_in_node_range now includes end line and col
This fixes no indents at the end of python files
Refs #1136
* update scala highlights (#1760 )
* add type highlights
* add call expression highlights
* add function definition highlights
* add expression highlights
* add literals highlights
* add operator highlights
* add punctuation highlights
* add comment highlights
Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
* test: Add unit tests
* Revert "fix: is_in_node_range now includes end line and col"
This reverts commit 5a721fef56 .
* refactor test
* apply stylua
* fix luacheck
* update `describe` text
* smallfix
Co-authored-by: Stevan Milic <stevan.milic@yahoo.com>
Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
2021-08-30 20:18:04 +02:00
leo60228
1dea3928a2
add compound_lit.c test
2021-08-01 11:01:47 +02:00
Santos Gallegos
be8f656087
Use stylua for autoformat code ( #1480 )
2021-07-04 21:12:17 +00:00