prevent interpreting /*/ as an entire comment

fixes #58
This commit is contained in:
Imuli 2018-07-20 07:14:53 -04:00
parent 731a0ed1c4
commit 3f86e882d3
2 changed files with 3 additions and 1 deletions

View File

@ -8379,6 +8379,7 @@ yyrule127: // ([/][*])|([/][*][*])
is_doc_comment = true
l.PhpDocComment = ""
}
c = l.Next()
for {
if c == -1 {
break // TODO: Unterminated comment starting line %d

View File

@ -294,6 +294,7 @@ NEW_LINE (\r|\n|\r\n)
l.PhpDocComment = ""
}
c = l.Next()
for {
if c == -1 {
break; // TODO: Unterminated comment starting line %d
@ -652,4 +653,4 @@ NEW_LINE (\r|\n|\r\n)
%%
if c, ok := l.Abort(); ok { return int(c) }
goto yyAction
}
}