tree-sitter/cli/src/tests
tree-sitter-ci-bot[bot] 3ad1c7d4e1
Fix cases where error recovery could infinite loop (#4257) (#4262)
* Rename corpus test functions to allow easy filtering by language

* Use usize for seed argument

* Avoid retaining useless stack versions when reductions merge

We found this problem when debugging an infinite loop that happened
during error recovery when using the Zig grammar. The large number of
unnecessary paused stack versions were preventing the correct recovery
strategy from being tried.

* Fix leaked lookahead token when reduction results in a merged stack

* Enable running PHP tests in CI

* Fix possible infinite loop during error recovery at EOF

* Account for external scanner state changes when detecting changed ranges in subtrees

(cherry picked from commit 066fd77d39)

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2025-03-04 15:38:59 -08:00
..
helpers feat: remove lazy_static in favor of LazyLock 2025-01-21 00:21:35 -05:00
proc_macro build: bump dependencies 2025-01-26 14:15:01 -05:00
async_context_test.rs fix(rust): adapt to some new nightly lints 2025-03-02 23:20:08 +01:00
corpus_test.rs Fix cases where error recovery could infinite loop (#4257) (#4262) 2025-03-04 15:38:59 -08:00
detect_language.rs feat(loader): support multi-barreled file extensions 2024-11-10 03:44:33 +01:00
highlight_test.rs feat: remove lazy_static in favor of LazyLock 2025-01-21 00:21:35 -05:00
language_test.rs fix(test): update expected tree-sitter-rust supertypes 2025-03-02 23:20:08 +01:00
mod.rs feat: add the semantic version to TSLanguage, and expose an API for retrieving it 2025-01-25 01:14:30 -05:00
node_test.rs feat: add the semantic version to TSLanguage, and expose an API for retrieving it 2025-01-25 01:14:30 -05:00
parser_hang_test.rs feat: add the semantic version to TSLanguage, and expose an API for retrieving it 2025-01-25 01:14:30 -05:00
parser_test.rs fix(lib): prevent finished_tree assertion failure 2025-02-01 16:19:14 -05:00
pathological_test.rs style: format imports 2024-04-11 22:35:43 -04:00
query_test.rs feat: add the semantic version to TSLanguage, and expose an API for retrieving it 2025-01-25 01:14:30 -05:00
tags_test.rs style: format imports 2024-04-11 22:35:43 -04:00
test_highlight_test.rs feat(cli): verify assertions for every carat in tests, not just the first one 2024-11-28 23:25:49 -05:00
test_tags_test.rs feat(cli): verify assertions for every carat in tests, not just the first one 2024-11-28 23:25:49 -05:00
text_provider_test.rs feat(rust): remove usage of deprecated functions 2024-10-31 21:58:35 -04:00
tree_test.rs chore: misc clippy lints 2024-10-06 17:55:00 -04:00
wasm_language_test.rs feat: remove lazy_static in favor of LazyLock 2025-01-21 00:21:35 -05:00