mirror of
https://github.com/RGBCube/cstree
synced 2025-07-27 09:07:44 +00:00
restore SyntaxToken
debug output if token text is truncated
This commit is contained in:
parent
497719770d
commit
62ec2a0843
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ impl<L: Language, D> SyntaxToken<L, D> {
|
||||||
|
|
||||||
for idx in 21..25 {
|
for idx in 21..25 {
|
||||||
if text.is_char_boundary(idx) {
|
if text.is_char_boundary(idx) {
|
||||||
return write!(target, r#" "{} ...""#, &text[..idx]);
|
let text = format!("{} ...", &text[..idx]);
|
||||||
|
return write!(target, " {:?}", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unreachable!()
|
unreachable!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue