Fix slash in multi-line comment
This commit is contained in:
parent
86bb376062
commit
6b7584b3cc
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ public class Lexer {
|
|||
} else if (peek(1) == '*') {
|
||||
currentCommentType = CommentType.MULTI_LINE;
|
||||
multiLineCommentDepth++;
|
||||
} else if (currentCommentType == CommentType.MULTI_LINE) {
|
||||
this.pos++;
|
||||
continue;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue