@@ -20,7 +20,7 @@ const valid_after_heredoc_73 = valid_after_heredoc.concat([
2020] ) ;
2121
2222module . exports = {
23- T_CONSTANT_ENCAPSED_STRING : function ( ) {
23+ T_CONSTANT_ENCAPSED_STRING ( ) {
2424 let ch ;
2525 while ( this . offset < this . size ) {
2626 ch = this . input ( ) ;
@@ -33,7 +33,7 @@ module.exports = {
3333 return this . tok . T_CONSTANT_ENCAPSED_STRING ;
3434 } ,
3535 // check if matching a HEREDOC state
36- is_HEREDOC : function ( ) {
36+ is_HEREDOC ( ) {
3737 const revert = this . offset ;
3838 if (
3939 this . _input [ this . offset - 1 ] === "<" &&
@@ -97,7 +97,7 @@ module.exports = {
9797 this . offset = revert ;
9898 return false ;
9999 } ,
100- ST_DOUBLE_QUOTES : function ( ) {
100+ ST_DOUBLE_QUOTES ( ) {
101101 let ch ;
102102 while ( this . offset < this . size ) {
103103 ch = this . input ( ) ;
@@ -141,7 +141,7 @@ module.exports = {
141141 } ,
142142
143143 // check if its a DOC end sequence
144- isDOC_MATCH : function ( offset , consumeLeadingSpaces ) {
144+ isDOC_MATCH ( offset , consumeLeadingSpaces ) {
145145 // @fixme : check if out of text limits
146146
147147 // consumeLeadingSpaces is false happen DOC prematch END HEREDOC stage.
@@ -222,7 +222,7 @@ module.exports = {
222222 * Prematch the end of HEREDOC/NOWDOC end tag to preset the
223223 * context of this.heredoc_label
224224 */
225- prematch_ENDOFDOC : function ( ) {
225+ prematch_ENDOFDOC ( ) {
226226 // reset heredoc
227227 this . heredoc_label . indentation_uses_spaces = false ;
228228 this . heredoc_label . indentation = 0 ;
@@ -249,7 +249,7 @@ module.exports = {
249249 }
250250 } ,
251251
252- matchST_NOWDOC : function ( ) {
252+ matchST_NOWDOC ( ) {
253253 // edge case : empty now doc
254254 if ( this . isDOC_MATCH ( this . offset , true ) ) {
255255 // @fixme : never reached (may be caused by quotes)
@@ -275,7 +275,7 @@ module.exports = {
275275 return this . tok . T_ENCAPSED_AND_WHITESPACE ;
276276 } ,
277277
278- matchST_HEREDOC : function ( ) {
278+ matchST_HEREDOC ( ) {
279279 // edge case : empty here doc
280280 let ch = this . input ( ) ;
281281 if ( this . isDOC_MATCH ( this . offset , true ) ) {
@@ -347,7 +347,7 @@ module.exports = {
347347 return this . tok . T_ENCAPSED_AND_WHITESPACE ;
348348 } ,
349349
350- consume_VARIABLE : function ( ) {
350+ consume_VARIABLE ( ) {
351351 this . consume_LABEL ( ) ;
352352 const ch = this . input ( ) ;
353353 if ( ch == "[" ) {
@@ -371,7 +371,7 @@ module.exports = {
371371 return this . tok . T_VARIABLE ;
372372 } ,
373373 // HANDLES BACKQUOTES
374- matchST_BACKQUOTE : function ( ) {
374+ matchST_BACKQUOTE ( ) {
375375 let ch = this . input ( ) ;
376376 if ( ch === "$" ) {
377377 ch = this . input ( ) ;
@@ -446,7 +446,7 @@ module.exports = {
446446 return this . tok . T_ENCAPSED_AND_WHITESPACE ;
447447 } ,
448448
449- matchST_DOUBLE_QUOTES : function ( ) {
449+ matchST_DOUBLE_QUOTES ( ) {
450450 let ch = this . input ( ) ;
451451 if ( ch === "$" ) {
452452 ch = this . input ( ) ;
0 commit comments