Commit Graph

21 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
Christian Clason
522e0c6991 feat(setup)!: remove ensure_install field
Instead, call `require('nvim-treesitter').install( { ... } )` manually.

This gives users full control over how they want to install parsers
(sync, from grammar, limited concurrency) and obviates the need for
calling `setup` for most users.
2025-05-12 18:43:40 +02:00
Christian Clason
9c0a99819c ci: remove update-lockfile shell script 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
Bruno BELANYI
5c4892b055 fix(textproto): use 'pbtxt' filetype (#6427)
This is the actual name of the detected filetype.
2024-04-11 18:03:22 +02:00
PorterAtGoogle
b4f6dd7298 feat(textproto): Add Textproto parser and queries (#5402)
* Add textproto parser and queries

* remove extra newline

* Apply suggestions from code review

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

---------

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-09-19 01:26:02 +09:00
Jacob Pfeifer
d186a9e95a feat: add Hurl
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>

---------

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-07-11 02:18:26 -04:00
Glib Shpychka
f460cc8ee7 feat(wing): add parser (#5021)
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-06-29 10:34:46 +00:00
Pham Huy Hoang
9ec2a6bbda tests: fix failed tests (#4901)
fix failed tests for tiger, t32 and wgsl
2023-06-05 09:52:36 +09:00
Pham Huy Hoang
217467c262 remove unnecessary ft aus
specify specific plugin files to load
2023-05-15 09:59:24 +02:00
Colin Kennedy
4c35c0b75d Added USD as a language + some queries
Added USD highlight unittests

Added USD indentation

Added USD indents.scm file

Added USD indent rules

Simplified USD highlight groups

Added explicit highlight groups

Added newline

Removed after/ftdetect/usda.lua

usd/indents.scm - Added inline comments explaining the nodes

Fixed USD highlight group unittests

Added indentation unittests

Simplified USD `@identifier` highlighting

Added USD documentation highlight group tests

Simplified USD highlight groups

Moved USD `@identifier` and `@namespace` highlights into one place

Removed and simplified tests/query/highlights/usd

Simplified tests/query/highlights/usd more

Removed trailing newline

Combined USD test files

Added `set filetype=usd` to minimal_init.lua
2023-05-15 09:28:11 +02:00
Zheng PiaoDan
32d0baae44 feat: add indents.scm for nickel (#4790) 2023-05-13 02:49:39 +09:00
Kiyan
783c74cefc chore: remove executable permissions on graphql spec file (#3206) 2022-07-22 10:14:48 +02:00
Christian Clason
07eb437bb1 refactor!: update to Neovim 0.7 APIs
* set highlight groups via nvim_set_hl
* define autocommands via nvim_create_autocmd
* port plugin/nvim-treesitter.vim to Lua
* port healthcheck to Lua
2022-04-30 16:08:01 +02:00
Connor Lay (Clay)
b62750e328 Gleam indentation tests 2022-02-15 19:01:02 +01:00
antosha417
00ebda5fd8 remove ftdetect. add filetype hocon to minimal_init.lua 2022-01-16 14:59:39 +01:00
Stephan Seitz
c3f73e4b63 ci: Remove "ensure_installed" from minimal_init.lua 2021-12-20 18:16:45 +01:00
Stephan Seitz
771abaf531 ci: Add workflow for tests 2021-11-24 17:29:55 +01:00
Santos Gallegos
be8f656087 Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
Jędrzej Boczar
975ef08616 scripts: fix wrong swapfile setting in minimal_init 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
67f2c7149c Initial sketch of automated indent tests 2021-04-23 21:21:38 +02:00