File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ void tokenizer_register_constants(INIT_FUNC_ARGS) {
171
171
REGISTER_LONG_CONSTANT ("T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG" , T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG , CONST_CS | CONST_PERSISTENT );
172
172
REGISTER_LONG_CONSTANT ("T_BAD_CHARACTER" , T_BAD_CHARACTER , CONST_CS | CONST_PERSISTENT );
173
173
REGISTER_LONG_CONSTANT ("T_DOUBLE_COLON" , T_PAAMAYIM_NEKUDOTAYIM , CONST_CS | CONST_PERSISTENT );
174
+ REGISTER_LONG_CONSTANT ("T_AMPERSAND" , T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG , CONST_CS | CONST_PERSISTENT );
174
175
}
175
176
176
177
char * get_token_type_name (int token_type )
@@ -320,7 +321,7 @@ char *get_token_type_name(int token_type)
320
321
case T_POW : return "T_POW" ;
321
322
case T_POW_EQUAL : return "T_POW_EQUAL" ;
322
323
case T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG : return "T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG" ;
323
- case T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG : return "T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG " ;
324
+ case T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG : return "T_AMPERSAND " ;
324
325
case T_BAD_CHARACTER : return "T_BAD_CHARACTER" ;
325
326
326
327
}
Original file line number Diff line number Diff line change 58
58
$ result .= "\tREGISTER_LONG_CONSTANT( \"$ tokenName \", $ tokenName, CONST_CS | CONST_PERSISTENT); \n" ;
59
59
}
60
60
$ result .= "\tREGISTER_LONG_CONSTANT( \"T_DOUBLE_COLON \", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT); \n" ;
61
+ $ result .= "\tREGISTER_LONG_CONSTANT( \"T_AMPERSAND \", T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG, CONST_CS | CONST_PERSISTENT); \n" ;
61
62
62
63
$ result .= <<<CODE
63
64
}
75
76
}
76
77
if ($ tokenName === 'T_PAAMAYIM_NEKUDOTAYIM ' ) {
77
78
$ result .= "\t\tcase T_PAAMAYIM_NEKUDOTAYIM: return \"T_DOUBLE_COLON \"; \n" ;
79
+ } else if ($ tokenName === 'T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG ' ) {
80
+ $ result .= "\t\tcase T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG: return \"T_AMPERSAND \"; \n" ;
78
81
} else {
79
82
$ result .= "\t\tcase $ tokenName: return \"$ tokenName \"; \n" ;
80
83
}
You can’t perform that action at this time.
0 commit comments