Skip to content

Commit 890d060

Browse files
committed
Add comments for ansii control sequence
1 parent 9386985 commit 890d060

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

peg.peg.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tree/peg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ type token[U Uint] struct {
6161
}
6262
6363
func (t *token[_]) String() string {
64+
// \x1B[34m = blue
65+
// \x1B[m = normal (disable color)
6466
return fmt.Sprintf("\x1B[34m%v\x1B[m %v %v", rul3s[t.pegRule], t.begin, t.end)
6567
}
6668

0 commit comments

Comments
 (0)