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