Commit Graph

13 Commits

Author SHA1 Message Date
Christian Clason
53dccb3a77 feat(tests)!: new infrastructure based on makefile
Problem: Not easy to run all checks and tests locally. Redundant CI
workflows.

Solution: Separate CI into two workflows:
 * lint: Lua files (stylua, luals), query files (valid captures,
   predicates, directives using tsqueryls), docs
   (SUPPORTED_LANGUAGES.md) -- does not need parser installation
 * tests: parsers (ABI compatibility), query files (tsqueryls on
   Linux/macOS; nvim on Windows), highlight and indent tests (separated
   for better readability) -- needs parser installation (but only once)

Switch to https://github.com/nvim-treesitter/highlight-assertions fork
with ABI 15 support.

Run all tests (on Linux and macOS) through `make` (`formatlua`,
`checklua`, `lintquery`, `formatquery`, `checkquery`, `docs`, `tests`),
which downloads and caches all necessary dependencies.

Remove `update-readme` workflow (replaced by lint job on PRs).
2025-05-12 18:43:41 +02:00
Pham Huy Hoang
3966b8808b fix!: indents now rely on treesitter highlight
- Apply suggestions from Lewis to only parse visible lines
- Fix failed tests
2025-05-12 18:43:40 +02:00
Christian Clason
692b051b09 feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00
Riley Bruins
f9773e4a5e test: fix tests broken after 0.10 update (#6714) 2024-06-01 12:33:56 +09:00
Marc Jakobi
da0efd7398 fix(haskell): update queries and tests for rewritten parser (#6580) 2024-05-07 07:27:44 +00:00
Kiyoon Kim
7eb5f1a2e3 properly replace deprecated tsutils functions 2023-02-12 14:26:14 -08:00
Stephan Seitz
6a31d9086e highlights(rust): use @namespace for [(crate) (self) (super)]
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
2023-01-01 15:32:07 +01:00
Christian Clason
42ab95d5e1 feat!: remove obsolete TS* highlight groups 2022-10-16 15:50:55 +02:00
Christian Clason
8e763332b7 fix(test): update tests to Nvim 0.8 2022-10-02 09:29:34 -04: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
dada29a1e5 fix(ci): make highlight test working with markdown 2022-01-16 17:16:54 +01:00
Stephan Seitz
b004d74bb5 Add assert that "highlight-assertions" is executable 2021-11-24 17:29:55 +01:00
Stephan Seitz
53ba38327e Add highlight tests 2021-11-24 17:29:55 +01:00