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 is_doc_comment = true
l.PhpDocComment = "" l.PhpDocComment = ""
} }
c = l.Next()
for { for {
if c == -1 { if c == -1 {
break // TODO: Unterminated comment starting line %d break // TODO: Unterminated comment starting line %d

View File

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