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
|
||||
l.PhpDocComment = ""
|
||||
}
|
||||
c = l.Next()
|
||||
for {
|
||||
if c == -1 {
|
||||
break // TODO: Unterminated comment starting line %d
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user