fix inline comment

This commit is contained in:
z7zmey 2017-12-01 17:55:44 +02:00
parent 610a935929
commit e41b97a09d
2 changed files with 8 additions and 2 deletions

View File

@ -685,6 +685,8 @@ yystate19:
goto yystate20 goto yystate20
case c == '\r': case c == '\r':
goto yystate21 goto yystate21
case c >= '\x01' && c <= '\t' || c == '\v' || c == '\f' || c >= '\x0e' && c <= 'ÿ':
goto yystate19
} }
yystate20: yystate20:
@ -702,6 +704,10 @@ yystate21:
goto yyrule125 goto yyrule125
case c == '\n': case c == '\n':
goto yystate20 goto yystate20
case c == '\r':
goto yystate21
case c >= '\x01' && c <= '\t' || c == '\v' || c == '\f' || c >= '\x0e' && c <= 'ÿ':
goto yystate19
} }
yystate22: yystate22:
@ -8450,7 +8456,7 @@ yyrule124: // \?\?
return T_COALESCE return T_COALESCE
goto yystate0 goto yystate0
} }
yyrule125: // (#|[/][/]){NEW_LINE} yyrule125: // (#|[/][/]).*{NEW_LINE}
{ {
// lval.token = string(l.TokenBytes(nil)); return T_COMMENT; // TODO: handle ?> // lval.token = string(l.TokenBytes(nil)); return T_COMMENT; // TODO: handle ?>
goto yystate0 goto yystate0

View File

@ -236,7 +236,7 @@ NEW_LINE (\r|\n|\r\n)
<PHP>\<\< lval.token = string(l.TokenBytes(nil)); return T_SL <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_SR
<PHP>\?\? lval.token = string(l.TokenBytes(nil)); return T_COALESCE <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>(#|[/][/]).*{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_COMMENT; // TODO: handle ?>
<PHP>[/][*][*][^*]*[*]+([^*/][^*]*[*]+)*[/] // lval.token = string(l.TokenBytes(nil)); return T_DOC_COMMENT; // TODO: handle ?> <PHP>[/][*][*][^*]*[*]+([^*/][^*]*[*]+)*[/] // lval.token = string(l.TokenBytes(nil)); return T_DOC_COMMENT; // TODO: handle ?>
<PHP>'[^']*(\\')*' lval.token = string(l.TokenBytes(nil)); return T_CONSTANT_ENCAPSED_STRING <PHP>'[^']*(\\')*' lval.token = string(l.TokenBytes(nil)); return T_CONSTANT_ENCAPSED_STRING