1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-06-16 01:54:56 +02:00
tree-sitter-dotenv/test/corpus/assignments.txt
Henrik Hautakoski d0b54d61aa Update grammar to correctly produce value token
Problem was before that for example the input [0x000KKK] would produce a
hexadecimal and a value token (for the respective parts)

However, the more correct way is to have the whole input identified as a
value token. basicly if the whole input between "=" and a special
"end-of-assignment" token can't be identified as a string,bool,integer
whatever. it should be identified as a value token.
2024-12-12 10:55:11 +01:00

18 lines
432 B
Text

================================================================================
Assignments
================================================================================
EMPTY=
EMPTY =
KEY_WITH_VALUE = value
--------------------------------------------------------------------------------
(document
(assignment
key: (identifier))
(assignment
key: (identifier))
(assignment
key: (identifier)
value: (value)))