Merge pull request #59 from imuli/slash-star-slash

prevent interpreting `/*/` as an entire comment
This commit is contained in:
Vadym Slizov 2018-07-23 20:28:05 +03:00 committed by GitHub
commit 4d2484867b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}
}