Skip to content

Commit

Permalink
feat: list stage name to plain_identifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Sep 25, 2024
1 parent a402d6c commit 4b97516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/query/ast/src/parser/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn stage_name(i: Input) -> IResult<Identifier> {
});

rule!(
#ident
#plain_identifier(|token| token.is_reserved_ident(false))(i)
| #anonymous_stage
)(i)
}
Expand Down
5 changes: 4 additions & 1 deletion src/query/ast/src/parser/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ pub enum TokenKind {
#[regex(r#"\$\$([^\$]|(\$[^\$]))*\$\$"#)]
LiteralCodeString,

#[regex(r#"@([^\s`;'"()]|\\\s|\\'|\\"|\\\\)+"#)]
#[regex(r#"@[_a-zA-Z][_$a-zA-Z0-9]*"#)]
#[regex(r#"@`[^`]*`"#)]
#[regex(r#"@"([^"\\]|\\.|"")*""#)]
#[regex(r#"@'([^'\\]|\\.|'')*'"#)]
LiteralAtString,

#[regex(r"[xX]'[a-fA-F0-9]*'")]
Expand Down

0 comments on commit 4b97516

Please sign in to comment.