mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
parse: Terminate barewords at " ' too
This commit is contained in:
parent
c9b29f6447
commit
a24ad63573
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user