修正支持Comment之后的BUG

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@128 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-19 01:29:16 +00:00
parent b603e8ee56
commit b98c5763a4
@@ -251,9 +251,15 @@ public class Lexer {
token = Token.VARIANT;
return;
case '/':
scanComment();
if ((token() == Token.LINE_COMMENT || token() == Token.MULTI_LINE_COMMENT) && skipComment) {
continue;
int nextChar = buf[bp + 1];
if (nextChar == '/' || nextChar == '*') {
scanComment();
if ((token() == Token.LINE_COMMENT || token() == Token.MULTI_LINE_COMMENT) && skipComment) {
continue;
}
} else {
token = Token.SLASH;
scanChar();
}
return;
default: