Restore onToken functionality for loose parser
This commit is contained in:
parent
d1f95ece42
commit
1b8069e48c
@ -66,6 +66,8 @@
|
|||||||
ahead.length = 0;
|
ahead.length = 0;
|
||||||
|
|
||||||
token = ahead.shift() || readToken(forceRegexp);
|
token = ahead.shift() || readToken(forceRegexp);
|
||||||
|
if (options.onToken)
|
||||||
|
options.onToken(token);
|
||||||
|
|
||||||
if (token.start >= nextLineStart) {
|
if (token.start >= nextLineStart) {
|
||||||
while (token.start >= nextLineStart) {
|
while (token.start >= nextLineStart) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user