mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add ByID and ByToken to token.IDMap.
This commit is contained in:
1 parent
f744089e9c
commit
cf8167a648
4 files changed
+20
-17
No files matched your search
@@ -109,7 +109,7 @@ func RenderFile(w io.Writer, src []token.Token, comments []string, m *token.IDMa
|
||||
}
|
||||
}
|
||||
|
||||
buf = append(buf, m.ByKey(t.Key())...)
|
||||
buf = append(buf, m.ByToken(t)...)
|
||||
|
||||
if t.ID == token.IDOpenCurly {
|
||||
if indent == maxIndent {
|
||||
|
||||
Reference in new issue
Block a user