提交 d24bf8de 编写于 作者: Z zhang2014

ISSUES-14231 allow dollar sign in identifier

上级 ab1d6650
......@@ -313,10 +313,10 @@ Token Lexer::nextTokenImpl()
}
default:
if (isWordCharASCII(*pos))
if (isWordCharASCII(*pos) || *pos == '$')
{
++pos;
while (pos < end && isWordCharASCII(*pos))
while (pos < end && (isWordCharASCII(*pos) || *pos == '$'))
++pos;
return Token(TokenType::BareWord, token_begin, pos);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册