Rename "yield foo" to "yield? foo"

This commit is contained in:
Nigel Tao committed 2019-02-23 17:15:57 +11:00
1 parent 045f180a6c
commit 931fdce475
8 files changed
+21 -13

No files matched your search

+2
View File
@@ -164,6 +164,8 @@ func Render(w io.Writer, tm *t.Map, src []t.Token, comments []string) (err error
return errors.New("render: too many \"}\" tokens")
}
indent--
} else if (tok.ID == t.IDQuestion) && (prevID == t.IDYield) {
buf = append(buf, ' ')
}
prevIsTightRight = tok.ID.IsTightRight()