Skip to content

Commit f4f21cd

Browse files
committed
glayzzle#148 - fix token detection
1 parent a8f10d8 commit f4f21cd

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

dist/php-parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! php-parser - BSD3 License - 2018-04-02 */
1+
/*! php-parser - BSD3 License - 2018-04-11 */
22

33
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
44
/*!
@@ -3744,6 +3744,8 @@ module.exports = {
37443744
return this.tok.T_OBJECT_OPERATOR;
37453745
}
37463746
if (ch) this.unput(1);
3747+
} else if (this.is_WHITESPACE()) {
3748+
return this.tok.T_WHITESPACE;
37473749
} else if (this.is_LABEL_START()) {
37483750
// https://github.com/php/php-src/blob/master/Zend/zend_language_scanner.l#L1300
37493751
this.consume_LABEL();

dist/php-parser.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/php-parser.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lexer/property.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ module.exports = {
1313
return this.tok.T_OBJECT_OPERATOR;
1414
}
1515
if (ch) this.unput(1);
16+
} else if (this.is_WHITESPACE()) {
17+
return this.tok.T_WHITESPACE;
1618
} else if (this.is_LABEL_START()) {
1719
// https://github.com/php/php-src/blob/master/Zend/zend_language_scanner.l#L1300
1820
this.consume_LABEL();

0 commit comments

Comments
 (0)