Skip to content

Commit

Permalink
Remove the initial "/" at the beginning of an docblock/
Browse files Browse the repository at this point in the history
Actually this is temporary workaround to be able try latest changes
of re2c >= 1.x.

Related issues:

* skvadrik/re2c#197
* #31
* zephir-lang/zephir#1591
* phalcon/cphalcon#13140
  • Loading branch information
sergeyklay committed Nov 4, 2017
1 parent 679a9d0 commit a57cb14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser/scanner.re
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
DCOMMENT = ("/**"([^*]+|[*]+[^/*])*[*]*"*/");
DCOMMENT {
// FIXME: https://github.com/skvadrik/re2c/issues/197
if (q[0] == '/') {
q++;
}
token->opcode = XX_T_COMMENT;
token->value = estrndup(q, YYCURSOR - q - 1);
token->len = YYCURSOR - q - 1;
Expand Down

0 comments on commit a57cb14

Please sign in to comment.