Skip to content

Commit 066011e

Browse files
committed
fix: print token kind in Cst::print helper
1 parent 903a8c6 commit 066011e

File tree

1 file changed

+3
-2
lines changed
  • crates/ltk_ritobin/src/parse/cst

1 file changed

+3
-2
lines changed

crates/ltk_ritobin/src/parse/cst/tree.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ impl Cst {
117117
Child::Token(token) => {
118118
format_to!(
119119
buf,
120-
"{parent_indent}│ {bar} {:?}\n",
121-
&source[token.span.start as _..token.span.end as _]
120+
"{parent_indent}│ {bar} {:?} ({:?})\n",
121+
&source[token.span.start as _..token.span.end as _],
122+
token.kind,
122123
)
123124
}
124125
Child::Tree(tree) => tree.print(buf, level + 1, source),

0 commit comments

Comments
 (0)