Commit graph

93 commits

Author SHA1 Message Date
ee641d1539 Release 0.7.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
2025-04-02 10:16:51 +00:00
e6473f64ae Add integer select pattern
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2025-04-02 10:15:11 +00:00
2b7323eaf0 Test non-recursive comments
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2025-03-24 12:07:55 +00:00
4c2a1d0012 Test negative integer literal
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2025-03-12 21:33:34 +00:00
bb0d5d6a40 Release 0.6.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
2025-03-12 21:24:44 +00:00
f9dbeed40a Handle 'tree-sitter.json' in 'bump-version' 2025-03-12 21:23:50 +00:00
9f5e6b0141 Bump flake inputs
Remove deleted input, update generated files.
2025-03-12 21:23:50 +00:00
16c43068ec Align queries with 'nvim-treesitter'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Makes it easier to update either way.
2024-12-23 23:08:26 -05:00
aeb1fc2bb5 Allow optional trailing comma in 'select'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-12-23 22:59:05 -05:00
fd92a31674 Fix typos 2024-12-23 22:55:38 -05:00
4e60cf3c2e Release 0.5.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
2024-07-01 13:56:45 +00:00
6b0cdd9122 Add select binding locals query 2024-07-01 13:56:21 +00:00
1fd9b67dbe Add select binding 2024-07-01 13:54:40 +00:00
3e685cb691 Add 'any' highlighting 2024-07-01 13:50:43 +00:00
970241b323 Add 'any' select pattern 2024-07-01 13:50:30 +00:00
2326d709fb Release 0.4.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
2024-05-13 15:46:07 +00:00
bf783d99bc Handle 'pyproject.toml' in 'bump-version' 2024-05-13 15:45:45 +00:00
c5031e2c16 Add indentation queries for multi-value 'select'
Unfortunately, the indentation feature is still a work in progress, so
we have some expected failures in our tests...
2024-05-13 15:44:18 +00:00
f228904ed0 Fix 'nvim-test-runner' reproducibility
For some reason, it looks like my personal configuration is interfering
with the tests despite `--noplug -u minimal_init.lua`...

Rather than investigate what _exactly_ is going on, let's merge this
work-around for now.
2024-05-13 15:44:18 +00:00
5cbdf5e3ac Test more 'select' related indentation cases 2024-05-13 15:44:18 +00:00
533c82cdf3 Add queries to Rust bindings 2024-05-13 15:44:18 +00:00
d25b07cae0 Add queries to 'package.json' 2024-05-13 15:44:18 +00:00
ff40b39dcf Expose 'condition' node 2024-05-13 15:44:18 +00:00
d01bcf0f6d Add multi-valued select expression 2024-05-13 15:44:18 +00:00
0816633d9a Name 'commaSeparated*' helpers consistently 2024-05-13 15:44:18 +00:00
6ca4592d84 Remove trailing commas in 'select_value' arguments 2024-05-13 15:44:18 +00:00
afdfbff7bc Add boolean-typed select values 2024-05-13 15:44:18 +00:00
f6bc0f887a Remove 'selection_type' alias 2024-05-13 15:44:18 +00:00
2649422636 Rename fields in 'select_value'
This aligns with upstream, and makes more sense given their usage.
2024-05-13 15:44:18 +00:00
1c1387fee0 Simplify 'select_value' rule
Upstream has greatly simplified the parsing of `select` expressions, in
order to add multi-valued `select`.

To this end, we remove the hard-coded list of function names, and accept
an arbitrary number of arguments.
2024-05-13 15:44:17 +00:00
8137fd3e5b Relax ordering in 'select' cases
We shouldn't really care whether or not `default` *is* the last value...
2024-05-13 15:44:17 +00:00
9e46303a1d Add more generated files attributes 2024-05-13 15:44:17 +00:00
1af33aeea1 Bump flake inputs
This means regenerating all the tree-sitter files, and adding newly
generated outputs (mostly new bindings).

The `--apply-all-captures` flag has been removed, it is now the default
(and only) matching behaviour.
2024-05-13 15:44:17 +00:00
b04cd92189 Add locals queries
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Once again, treating module as function calls, since that's basically
what they are...
2024-04-14 13:00:17 +01:00
6d6d9fc03b Add test for multiple arguments in selection type 2024-04-14 13:00:17 +01:00
6ece5d984a Release 0.3.0
Some checks failed
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline failed
2024-04-13 18:27:56 +01:00
e6a2757c51 Alias 'default_case' to 'select_case'
There's not much use in the node being a different name.
2024-04-13 18:23:06 +01:00
8db7b053f5 Add 'default' alias
This makes it appear in the tree as a named node.
2024-04-13 18:21:58 +01:00
d297f38e6a Fix typos in indentation test runner
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-04-13 18:17:22 +01:00
cc84a43055 Release 0.2.0
Some checks failed
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline failed
2024-04-13 17:11:41 +01:00
0ca28eb2e9 Add indentation tests 2024-04-13 17:07:43 +01:00
f8f328fa17 Add indentation queries 2024-04-13 17:07:37 +01:00
9ee889d7ad Make 'punctuation' highlight test more exhaustive 2024-04-13 17:07:29 +01:00
9889191245 Fix indentation in test files 2024-04-13 17:07:23 +01:00
6bd28f2b6b Add NeoVim test runner
For the queries that can't be tested with `tree-sitter` itself.
2024-04-13 17:07:16 +01:00
9e9fde6c77 Add 'comment' injection 2024-04-13 16:01:26 +01:00
615bb266cc Add folding query 2024-04-13 16:01:26 +01:00
9457caf3a2 Fix typo in a comment 2024-04-11 18:44:13 +01:00
adec624d74 Tweak comment parsing
This is taken verbatim from tree-sitter-c [1], just in case :-).

[1]: https://github.com/tree-sitter/tree-sitter-c
2024-04-11 18:38:14 +01:00
b62fc19da9 Make comments a single node in the grammar
This looks to be a *strong* idiom in tree-sitter parsers.
2024-04-11 18:36:20 +01:00