Skip to content

Commit 82233e9

Browse files
committed
glayzzle#139 - fix location
1 parent 0603ae6 commit 82233e9

File tree

5 files changed

+28
-34
lines changed

5 files changed

+28
-34
lines changed

dist/php-parser.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! php-parser - BSD3 License - 2018-03-06 */
1+
/*! php-parser - BSD3 License - 2018-03-23 */
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
/*!
@@ -3202,7 +3202,7 @@ lexer.prototype.setInput = function (input) {
32023202
this.tokens = [];
32033203
this.done = this.offset >= this.size;
32043204
if (!this.all_tokens && this.mode_eval) {
3205-
this.conditionStack = ['INITIAL'];
3205+
this.conditionStack = ["INITIAL"];
32063206
this.begin("ST_IN_SCRIPTING");
32073207
} else {
32083208
this.conditionStack = [];
@@ -3392,7 +3392,7 @@ lexer.prototype.lex = function () {
33923392
return this.tok.T_ECHO;
33933393
} else if (token === this.tok.T_CLOSE_TAG) {
33943394
// https://github.com/php/php-src/blob/7ff186434e82ee7be7c59d0db9a976641cf7b09c/Zend/zend_compile.c#L1680
3395-
return ';'; /* implicit ; */
3395+
return ";"; /* implicit ; */
33963396
}
33973397
}
33983398
if (!this.yylloc.prev_offset) {
@@ -6616,8 +6616,9 @@ module.exports = {
66166616
items = this.next().read_use_declarations(type === null);
66176617
this.expect("}") && this.next();
66186618
}
6619+
result = result(name, type, items);
66196620
this.expect(";") && this.next();
6620-
return result(name, type, items);
6621+
return result;
66216622
},
66226623
/**
66236624
* Reads a use declaration
@@ -7245,20 +7246,12 @@ module.exports = {
72457246
{
72467247
result = this.node("echo");
72477248
var text = this.text();
7248-
var shortForm = text === '<?=' || text === '<%=';
7249+
var shortForm = text === "<?=" || text === "<%=";
72497250
var args = this.next().read_list(this.read_expr, ",");
72507251
this.expectEndOfStatement();
72517252
return result(args, shortForm);
72527253
}
72537254

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-
72627255
case this.tok.T_INLINE_HTML:
72637256
{
72647257
var value = this.text();

0 commit comments

Comments
 (0)