1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-08-15 12:58:12 +02:00
tree-sitter-dotenv/test/corpus
Henrik Hautakoski 0cc23a517e feat: make export keyword anonymous.
"export" was a named node despite always having fixed spelling, with
no variation to expose to queries. Anonymous string literals are
already fully queryable ("export" @keyword), so the named production
added a redundant node in the tree for no benefit.

Keeps the alias("export", $.identifier) in the key field, since that
usage is a genuine reclassification (export as an identifier, not the
keyword) and still needs to be named.

Updated corpus tests to use :cst format where "export" and "="
presence needs to be asserted explicitly.
2026-07-16 10:47:32 +02:00
..
assignments.txt Update grammar to correctly produce value token 2024-12-12 10:55:11 +01:00
comments.txt make no distinction between single quoted and double quoted string tokens. 2024-12-12 17:05:31 +01:00
export.txt feat: make export keyword anonymous. 2026-07-16 10:47:32 +02:00
string_values.txt make string_content optional instead of matching empty values. 2024-12-12 17:23:37 +01:00
values.txt adding hexadecimal and decimal as a subtoken for integer 2024-12-12 16:55:10 +01:00
variables.txt adding variable support 2024-12-12 19:22:14 +01:00