aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check-queries.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix(lua): fix some emmyluals warningsChristian Clason2025-12-061-1/+0
|
* fix(check-queries): only show timings for existing queriesChristian Clason2025-05-301-2/+4
|
* feat(api): expose list of available and installed languagesChristian Clason2025-05-291-1/+1
|
* fix(config): check both installed parsers and queriesChristian Clason2025-05-291-1/+1
| | | | | | | | | Problem: Can't uninstall custom parsers without queries since `installed_parsers` only iterates over installed queries (to include query-only languages, and to avoid string manipulation). Solution: Iterate over both queries and parsers to collect list of installed languages (optionally only queries or only parsers).
* feat(tests)!: new infrastructure based on makefileChristian Clason2025-05-121-36/+0
| | | | | | | | | | | | | | | | | | | | | | 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).
* refactor(lua): fix some luals warningsChristian Clason2025-05-121-4/+4
|
* feat!: track parser revision in LuaChristian Clason2025-05-121-1/+1
| | | | | | | | | | | Problem: Tracking parser revision in lockfile and allowing override through the parsers module complicates the code. In addition, only revision changes are handled robustly, not changes to other installation info. Solution: Track parser revision in the parsers module directly. Reload parser table on every install or update call. Support modifying parser table in a `User TSUpdate` autocommand.
* feat: improve check-queriesChristian Clason2025-05-121-58/+39
|
* refactor: use `vim.uv`Christian Clason2025-05-121-45/+27
|
* ci: remove update-lockfile shell scriptChristian Clason2025-05-121-11/+14
|
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-36/+44
|
* feat(highlights)!: enforce documented captures (#6232)Christian Clason2024-03-031-12/+2
| | | | | | | | | | | | | | | Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin.
* feat(tests): allow check-queries to take list of parsersChristian Clason2024-01-261-1/+1
| | | | `./scripts/check-queries.lua foo bar baz`
* test(queries): print ALL errors at endChristian Clason2024-01-191-12/+9
|
* ci: add shebangs to scriptsObserverOfTime2023-08-181-1/+1
|
* feat(t32): re-enable testsChristoph Sax2023-07-301-1/+1
| | | | | | | | | - Switch to GitLab mirror repository - Lock grammar version 2.2.0 - Revert "fix(tests): mark t32 as allowed to fail" This reverts commit ba223ceecc5d66312780c45079b6ae55c406fa96. - Revert "fix(tests): remove t32 tests" This reverts commit 97957a547b93412411ba3a8a9abd27589247c869.
* fix(tests): mark t32 as allowed to failChristian Clason2023-07-291-1/+1
|
* ci: improve CI output on query errorStephan Seitz2022-12-271-2/+3
|
* ci: fix check for valid captureStephan Seitz2022-11-251-1/+1
| | | | Arguments to vim.startswith where swapped. Prefix has to go second.
* ci: relax check for valid captures (only check prefixes)Stephan Seitz2022-09-291-1/+12
|
* ci: don't skip swift anymoreStephan Seitz2022-04-151-26/+22
| | | | I think this was a nvim 0.6 issue
* chore: update formatting for stylua updateStephan Seitz2022-04-021-3/+3
|
* ci: make io_print accept nil as input argument (#2445)dundargoc2022-02-041-0/+3
| | | | Convert nil to an empty string, which mimicks the behavior of standard print
* ci: skip swift check on neovim stableDundar Göc2022-01-311-22/+26
| | | | | | This is meant as a temporary workaround until neovim 0.7 is released. More context: https://github.com/nvim-treesitter/nvim-treesitter/issues/2313#issuecomment-1025258357
* ci: prefer io.write instead of print to have full control of outputDundar Göc2022-01-311-15/+21
| | | | This should prevent different output formats on windows and unix.
* ci: add folds to CI output to better group related informationDundar Göc2022-01-301-4/+7
|
* ci: print query loading timesStephan Seitz2022-01-161-3/+20
|
* CI: don't require to have parsers installed to check for injectionsSantos Gallegos2021-08-011-1/+1
|
* Use stylua for autoformat code (#1480)Santos Gallegos2021-07-041-25/+25
|
* Improve check-queries (#1253)Santos Gallegos2021-05-311-6/+15
| | | | | - Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
* Allow failures for defined parsersStephan Seitz2021-04-221-1/+5
|
* fix(CI): ensure parsers that don't require tree-sitter CLI are installedStephan Seitz2021-04-221-0/+13
|
* Use installed parsers in CI checkStephan Seitz2021-03-161-19/+15
|
* Skip parsers in query check that are not installedStephan Seitz2021-03-161-14/+18
|
* Mark several invalid queriesStephan Seitz2021-03-161-0/+2
|
* Allow multiple errors in CIStephan Seitz2021-03-161-9/+17
|
* ci: check capture names in queriesThomas Vigouroux2020-09-111-1/+35
|
* checkhealth for all query groupsStephan Seitz2020-07-151-1/+1
|
* Also check textobjects queries in check-queries.luaStephan Seitz2020-07-141-1/+1
|
* Add workflow for checking query filesStephan Seitz2020-07-141-0/+25