Commit graph

886 commits

Author SHA1 Message Date
HiPhish
5f73b24aeb Update included nvim-treesitter 2024-09-03 23:40:22 +02:00
HiPhish
8f47c3d702 Fix path to busted adapter in nvimrc 2024-09-01 23:41:08 +02:00
HiPhish
f17969999c Add more information to HACKING file
Describes my findings about non-sandwiching delimiters
2024-09-01 23:40:23 +02:00
HiPhish
b9ba41d1b9 Add clarifications to HACKING file
The nesting algorithm only works for sandwiching delimiters, for other
delimiters (like Python keywords such as `def` and `while`) the
algorithm does not work.
2024-09-01 15:46:41 +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
98513481e0 Fix script for recording highlight gold standard
The end row was wrongly recorded with the value of the end column.
2024-08-12 23:29:50 +02:00
HiPhish
01a9381850 Update TODO 2024-08-12 23:06:43 +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
a2072fef01 Release version 0.6.1 2024-08-11 12:59:38 +02:00
HiPhish
56e6d1ecab Fix missing option in health check 2024-08-11 12:58:59 +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
254c67c8c6 Make wrapped strategy in Christmas optional
Defaults to the global strategy.
2024-08-08 19:22:40 +02:00
HiPhish
361193faea Release version 0.6.0 2024-08-07 23:24:10 +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
a727bd368e Release version 0.5.0 2024-07-29 00:30:24 +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
e85bc80b44 Update documentation 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
b29da4a606 Update changelog 2024-07-07 23:49:42 +02:00
HiPhish
e53baeb126 R: Remove duplicate pattern 2024-07-07 23:48:46 +02:00
Philippe Massicotte
b35d8bd373
♻️ (rainbow-delimiters.scm): rename nodes for better clarity and consistency 2024-07-03 13:04:26 -04: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