Record trivia in tokens

This will make our formatting better I think.
This commit is contained in:
John Doty 2024-09-12 06:22:49 -07:00
parent 8a80bcad64
commit b3b2102864
3 changed files with 90 additions and 12 deletions

View file

@ -255,7 +255,16 @@ class Matcher:
table = self.table
input = [(child_to_name(i), i) for i in items] + [
("$", runtime.TokenValue(kind="$", start=0, end=0))
(
"$",
runtime.TokenValue(
kind="$",
start=0,
end=0,
pre_trivia=[],
post_trivia=[],
),
)
]
input_index = 0