parse: Terminate barewords at " ' too

This commit is contained in:
Cheer Xiao 2013-10-04 23:59:08 +08:00
parent c9b29f6447
commit a24ad63573

View File

@ -265,7 +265,7 @@ func lexBare(l *Lexer) stateFn {
func terminatesBare(r rune) bool {
switch r {
case '\n', '(', ')', Eof:
case '\n', '(', ')', '"', '\'', Eof:
return true
}
return isSpace(r)