提交 328d3a8b 编写于 作者: V Vitaly Baranov

Add token type '@'.

上级 291b7c27
......@@ -304,6 +304,8 @@ Token Lexer::nextTokenImpl()
return Token(TokenType::Concatenation, token_begin, ++pos);
return Token(TokenType::ErrorSinglePipeMark, token_begin, pos);
}
case '@':
return Token(TokenType::At, token_begin, ++pos);
default:
if (isWordCharASCII(*pos))
......
......@@ -48,6 +48,8 @@ namespace DB
M(GreaterOrEquals) \
M(Concatenation) /** String concatenation operator: || */ \
\
M(At) /** @. Used only for specifying user names. */ \
\
/** Order is important. EndOfStream goes after all usual tokens, and special error tokens goes after EndOfStream. */ \
\
M(EndOfStream) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册