Merge pull request #59 from imuli/slash-star-slash
prevent interpreting `/*/` as an entire comment
This commit is contained in:
commit
4d2484867b
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user