Add ByID and ByToken to token.IDMap.

This commit is contained in:
Nigel Tao committed 2017-05-06 17:02:11 +10:00
1 parent f744089e9c
commit cf8167a648
4 files changed
+20 -17

No files matched your search

+1 -1
View File
@@ -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 {