|
1 | | -/*! php-parser - BSD3 License - 2018-03-06 */ |
| 1 | +/*! php-parser - BSD3 License - 2018-03-23 */ |
2 | 2 |
|
3 | 3 | 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){ |
4 | 4 | /*! |
@@ -3202,7 +3202,7 @@ lexer.prototype.setInput = function (input) { |
3202 | 3202 | this.tokens = []; |
3203 | 3203 | this.done = this.offset >= this.size; |
3204 | 3204 | if (!this.all_tokens && this.mode_eval) { |
3205 | | - this.conditionStack = ['INITIAL']; |
| 3205 | + this.conditionStack = ["INITIAL"]; |
3206 | 3206 | this.begin("ST_IN_SCRIPTING"); |
3207 | 3207 | } else { |
3208 | 3208 | this.conditionStack = []; |
@@ -3392,7 +3392,7 @@ lexer.prototype.lex = function () { |
3392 | 3392 | return this.tok.T_ECHO; |
3393 | 3393 | } else if (token === this.tok.T_CLOSE_TAG) { |
3394 | 3394 | // https://github.com/php/php-src/blob/7ff186434e82ee7be7c59d0db9a976641cf7b09c/Zend/zend_compile.c#L1680 |
3395 | | - return ';'; /* implicit ; */ |
| 3395 | + return ";"; /* implicit ; */ |
3396 | 3396 | } |
3397 | 3397 | } |
3398 | 3398 | if (!this.yylloc.prev_offset) { |
@@ -6616,8 +6616,9 @@ module.exports = { |
6616 | 6616 | items = this.next().read_use_declarations(type === null); |
6617 | 6617 | this.expect("}") && this.next(); |
6618 | 6618 | } |
| 6619 | + result = result(name, type, items); |
6619 | 6620 | this.expect(";") && this.next(); |
6620 | | - return result(name, type, items); |
| 6621 | + return result; |
6621 | 6622 | }, |
6622 | 6623 | /** |
6623 | 6624 | * Reads a use declaration |
@@ -7245,20 +7246,12 @@ module.exports = { |
7245 | 7246 | { |
7246 | 7247 | result = this.node("echo"); |
7247 | 7248 | var text = this.text(); |
7248 | | - var shortForm = text === '<?=' || text === '<%='; |
| 7249 | + var shortForm = text === "<?=" || text === "<%="; |
7249 | 7250 | var args = this.next().read_list(this.read_expr, ","); |
7250 | 7251 | this.expectEndOfStatement(); |
7251 | 7252 | return result(args, shortForm); |
7252 | 7253 | } |
7253 | 7254 |
|
7254 | | - case this.tok.T_OPEN_TAG_WITH_ECHO: |
7255 | | - { |
7256 | | - result = this.node("echo"); |
7257 | | - var _args = this.next().read_list(this.read_expr, ","); |
7258 | | - this.expectEndOfStatement(); |
7259 | | - return result(_args); |
7260 | | - } |
7261 | | - |
7262 | 7255 | case this.tok.T_INLINE_HTML: |
7263 | 7256 | { |
7264 | 7257 | var value = this.text(); |
|
0 commit comments