add T_COALESCE
This commit is contained in:
parent
c11d3ece0d
commit
c284df2e8c
1
lexer.l
1
lexer.l
@ -309,6 +309,7 @@ NEW_LINE (\r|\n|\r\n)
|
||||
<PHP>\*\* lval.token = string(l.TokenBytes(nil)); return T_POW
|
||||
<PHP>\<\< lval.token = string(l.TokenBytes(nil)); return T_SL
|
||||
<PHP>\>\> lval.token = string(l.TokenBytes(nil)); return T_SR
|
||||
<PHP>\?\? lval.token = string(l.TokenBytes(nil)); return T_COALESCE
|
||||
<PHP>(#|[/][/]){NEW_LINE} lval.token = string(l.TokenBytes(nil)); return T_COMMENT; // TODO: handle ?>
|
||||
<PHP>[/][*][^*]*[*]+([^*/][^*]*[*]+)*[/] lval.token = string(l.TokenBytes(nil)); return T_COMMENT; // TODO: handle ?>
|
||||
<PHP>[/][*][*][^*]*[*]+([^*/][^*]*[*]+)*[/] lval.token = string(l.TokenBytes(nil)); return T_DOC_COMMENT; // TODO: handle ?>
|
||||
|
Loading…
Reference in New Issue
Block a user