tree-sitter/test/fixtures/test_grammars
Will Lillis 027136c98a fix(generate): use correct state id when adding terminal states to
non terminal extras

(cherry picked from commit 5fd818babe)
2025-09-04 04:52:45 -04:00
..
aliased_inlined_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
aliased_rules Avoid extracting default alias for extras 2022-08-10 07:27:34 -07:00
aliased_token_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
aliased_unit_reductions Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
aliases_in_root Fix crash w/ goto_previous_sibling when parent node has leading extra child (#4472) (#4473) 2025-05-27 17:35:57 -07:00
anonymous_error fix(lib): check if an ERROR node is named before assuming it's the builtin error node 2025-08-28 23:53:00 +02:00
anonymous_tokens_with_escaped_chars fix(cli): only remove test input's trailing '\r' if running on windows 2025-01-11 17:52:54 -05:00
associativity_left Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
associativity_missing Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
associativity_right Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflict_in_repeat_rule Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflict_in_repeat_rule_after_external_token Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
conflicting_precedence Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
depends_on_column fix: handle more cases of editing subtrees that depend on column values 2024-09-29 20:36:08 -04:00
dynamic_precedence Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
epsilon_external_extra_tokens Ignore external tokens that are zero-length and extra (#4213) (#4216) 2025-02-17 17:38:13 -08:00
epsilon_external_tokens fix: rework parser.h includes for test grammars and multi-grammar repos 2024-02-02 10:42:39 -05:00
epsilon_rules Convert some of the fixture grammars from JSON to JS 2021-10-22 18:47:23 -06:00
external_and_internal_anonymous_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_and_internal_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_extra_tokens test: modernize scanner files 2024-05-05 18:31:53 -04:00
external_tokens feat: allow external scanners to use the logger 2024-08-17 14:46:28 -04:00
external_unicode_column_alignment test: modernize scanner files 2024-05-05 18:31:53 -04:00
extra_non_terminals fix(generate): use correct state id when adding terminal states to 2025-09-04 04:52:45 -04:00
extra_non_terminals_with_shared_rules Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
get_col_eof fix(lib): correct unexpected side effect in get_column when the lexer is at EOF 2024-10-08 23:27:42 -04:00
get_col_should_hang_not_crash fix: rework parser.h includes for test grammars and multi-grammar repos 2024-02-02 10:42:39 -05:00
immediate_tokens Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
indirect_recursion_in_transitions fix(generate): return error when single state transitions have 2025-09-04 01:47:36 -04:00
inline_rules Convert more test grammars from JSON to JS 2021-11-19 10:35:53 -08:00
inlined_aliased_rules Convert more fixture grammars from JSON to JS 2021-12-30 16:27:02 -08:00
inverted_external_token test: modernize scanner files 2024-05-05 18:31:53 -04:00
invisible_start_rule Convert more fixture grammars from JSON to JS 2021-12-30 16:27:02 -08:00
lexical_conflicts_due_to_state_merging refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
named_precedences refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
named_rule_aliased_as_anonymous refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
nested_inlined_rules refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
next_sibling_from_zwt docs: improve docs for contributing to docs 2025-01-10 22:57:54 -05:00
partially_resolved_conflict refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_missing refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_negative refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_single_child_positive refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_subsequence refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
precedence_on_token refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
readme_grammar feat: support passing in a Rust regex in the grammar dsl 2025-01-06 20:52:19 -05:00
reserved_words feat: add 'reserved word' construct 2024-12-23 03:06:32 -05:00
start_rule_is_blank refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
start_rule_is_token refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
unicode_classes refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
unused_rules refactor(tests): migrate remaining grammar.json tests to grammar.js 2024-04-29 00:01:35 -04:00
uses_current_column test: modernize scanner files 2024-05-05 18:31:53 -04:00
readme.md Rename spec -> test 2017-03-09 20:40:01 -08:00

These small grammars demonstrate specific features or test for certain specific regressions.

For some of them, compilation is expected to fail with a given error message. For others, the resulting parser is expected to produce certain trees.