Skip to content

Commit 91010c0

Browse files
committed
eat next token before result (fix positions)
1 parent 4039451 commit 91010c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/scalar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ module.exports = {
5858
isDoubleQuote = text[0] === '"';
5959
text = text.substring(1, text.length - 1);
6060
}
61+
this.next();
6162
value = value(isDoubleQuote, this.resolve_special_chars(text));
6263
if (isBinCast) {
6364
value = ['cast', 'binary', value];
6465
}
65-
this.next();
6666
if (this.token === this.tok.T_DOUBLE_COLON) {
6767
// https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y#L1151
6868
return this.read_static_getter(value);

0 commit comments

Comments
 (0)