Commit graph

268 commits

Author SHA1 Message Date
HiPhish
5f73b24aeb Update included nvim-treesitter 2024-09-03 23:40:22 +02:00
HiPhish
bb48714623 Update Zig query 2024-08-31 01:18:21 +02:00
HiPhish
9bbd3ea1b2 Add parenthesized expression SQL pattern 2024-08-31 00:50:30 +02:00
HiPhish
44b1976f6b Update nvim-treesitter dependency 2024-08-31 00:50:16 +02:00
HiPhish
9f3d10e66a Synchronise Go query with upstream parser 2024-08-19 10:28:57 +02:00
HiPhish
c097f728a4 Remove duplicate pattern in Rust query 2024-08-14 23:49:14 +02:00
HiPhish
8b212ca68a Remove broken SQL pattern 2024-08-14 23:28:02 +02:00
HiPhish
308cbc10a7 Remove broken query from Luadoc 2024-08-14 21:22:27 +02:00
HiPhish
98e93a75fc Fix syntax error in C++ and Cuda sample files 2024-08-14 20:14:52 +02:00
HiPhish
b598aef62b Remove duplicate pattern in C++ query 2024-08-14 20:12:50 +02:00
HiPhish
0543d6ff37 Update Cuda highlight gold standard
The new recording reflects the changes to the C++ query.
2024-08-14 00:07:52 +02:00
HiPhish
bbd8eea0d8 Fix missing @container capture in C++ 2024-08-14 00:05:16 +02:00
HiPhish
8d88eaf246 Fix duplicate extmarks in Ruby 2024-08-13 19:56:34 +02:00
HiPhish
ea4a2da7d1 Fix duplicate extmarks in Zig 2024-08-12 23:54:56 +02:00
HiPhish
9e622fe398 Update highlight gold standard files
This follows the fix to the script which records the gold standard.
2024-08-12 23:54:56 +02:00
HiPhish
1a7721677c Fix recorded gold standard for Zig 2024-08-12 23:42:52 +02:00
HiPhish
4d0d05ab1e Change error message in highlight tests 2024-08-12 22:04:49 +02:00
HiPhish
589ceeab12 Fix duplicate extmarks in Common Lisp
Some delimiters could get the same extmark twice.  This would have no
visual impact, but it is still a bug and can mess up testing.
2024-08-12 18:48:19 +02:00
HiPhish
79f7d77162 Move shims into their own directory
With three shims now it makes sense to move them to their own dedicated
directory.
2024-08-12 00:16:25 +02:00
HiPhish
827442a059 Reorganize command-line shims for Neovim
The previous shim has been renamed to `lua` because it is effectively
just Neovim acting as a Lua interpreter.  A new shim named `nvim` has
been added which acts as an interactive Neovim.
2024-08-12 00:16:13 +02:00
HiPhish
e19c3824f8 Re-record highlights tests with Vim script
After changing the Vim script query all test specification files which
contain Vim script needed to be updated.
2024-08-12 00:02:47 +02:00
HiPhish
fffe2d9070 Improve Vim script query 2024-08-11 23:56:16 +02:00
HiPhish
97b8238fb6 Add test for for bug in Neovim 0.10
The test gets skipped for now because we know it to be broken.  It need
to be enabled when the bug gets fixed.
2024-08-09 07:55:48 +02:00
HiPhish
7997a464d7 Add a little convenience function to a test
This convenience wrapper function cuts down on boilerplate code, that's
all.
2024-08-08 23:44:50 +02:00
HiPhish
a74553b331 Add option to dynamically disable for a buffer
Based on a GitHub discussion[1], this option lets users specify a
predicate to dynamically enable or disable rainbow delimiters for a
buffer.

[1] https://github.com/HiPhish/rainbow-delimiters.nvim/discussions/130
2024-08-07 23:23:11 +02:00
HiPhish
7b2a54aefc Update changelog and highlight tests 2024-07-29 00:13:55 +02:00
Jeremy Capblancq
b40b683602
fix(c_sharp): missing tuple_pattern capture 2024-07-28 12:59:55 -04:00
HiPhish
960cce4eba Add Awk support 2024-07-25 00:08:49 +02:00
HiPhish
5e00781455 Add inverse tests for selective activation
These tests verify correct behaviour when the language is not white- or
blacklisted.
2024-07-24 21:43:21 +02:00
HiPhish
d92ffe707b Simplify selective activation tests
Moved common code up to the `before_each` function.
2024-07-24 21:33:14 +02:00
HiPhish
f15c67214b Add generated highlight test specs 2024-07-23 21:00:26 +02:00
HiPhish
a1773953fc Implement automated highlight testing
Highlights are tested by comparing the current extmarks of a buffer to
the previously recorded extmarks.
2024-07-23 21:00:21 +02:00
HiPhish
7b56d41495 Update nvim-treesitter dependency 2024-07-23 21:00:21 +02:00
HiPhish
594e88ba1d Drop symlink creation from tests
Creating and removing symlinks is brittle because the symlink might get
left over and mess up subsequent tests.  This change makes it so that
the path to the plugin is injected into the runtime path at startup.
2024-07-23 21:00:14 +02:00
HiPhish
5c9660801c Add explicit modeline to Django template test file
Makes sure that Neovim does not interpret the Django template as being
Jinja.
2024-06-14 01:32:03 +02:00
HiPhish
c5b3067601 Add support for Django HTML templates 2024-06-14 01:22:13 +02:00
HiPhish
0f31461312 Extend has_extmarks_at test assertion
The assertion now takes an extra parameter to check for a specific
highlight group.  By default any highlight group will match, but if one
is specified only extmarks with that particular highlight groups are
counted.

While I was at it I also noticed that the `vim.fn.filter` function was
used wrongly, it did not mutate the Lua list in place.  I had to replace
it with `vim.tbl_filter`.
2024-05-31 21:07:57 +02:00
Danielkonge
6d3371d66c feat(wgsl): Add wgsl support 2024-05-29 21:26:03 +02:00
Danielkonge
6bfbaef4a4 Add missing Rust pattern 2024-05-29 21:26:03 +02:00
HiPhish
870a8e32ac Merge branch 'cue-fix' 2024-05-29 01:25:57 +02:00
HiPhish
849803e0a6 Add missing C++ patterns 2024-05-24 12:31:28 +02:00
Hoang Nguyen
d517b618ea
fix(cue): add missing captures index_expression and dynamic 2024-05-24 00:00:00 +07:00
HiPhish
b0f8e7d8a6 Merge branch 'oxfist/master' 2024-05-20 22:39:08 +02:00
Andrés Quilodrán
eb3e304523
Add missing queries for TypeScript interface and enum 2024-05-19 00:42:33 -04:00
HiPhish
126c130759 Merge branch 'oxfist/master' 2024-05-07 17:13:36 +02:00
HiPhish
f47cace3b1 Add missing loop_macro pattern for Common Lisp 2024-05-07 13:59:04 +02:00
HiPhish
170994e291 Add Teal support 2024-05-07 09:38:28 +02:00
Andrés Quilodrán
df28ee219c
Add a few missing javascript nodes 2024-05-07 00:28:19 -04:00
Andrés Quilodrán
bb464d3b1f
Improve support for R 2024-05-01 22:23:22 -04:00
Micah Halter
cac7dfe65b
fix(julia): remove deprecated query and add missing delimiters 2024-04-18 08:34:36 -04:00