Fix Expression to stop on : only if hookLevel is not elevated.
git-svn-id: svn://10.0.0.236/trunk@152663 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5aa112d362
commit
249fbf859b
@ -714,7 +714,8 @@ function Expression(t, x, stop) {
|
||||
loop:
|
||||
while ((tt = t.get()) != END) {
|
||||
if (tt == stop &&
|
||||
x.bracketLevel == bl && x.curlyLevel == cl && x.parenLevel == pl) {
|
||||
x.bracketLevel == bl && x.curlyLevel == cl && x.parenLevel == pl &&
|
||||
x.hookLevel == hl) {
|
||||
// Stop only if tt matches the optional stop parameter, and that
|
||||
// token is not quoted by some kind of bracket.
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user