Tentatively fixed snowflake ident in @-prefixed paths

This commit is contained in:
Luca 2025-10-29 10:37:32 +01:00
parent 819c0958d6
commit 7ea97462de

View file

@ -1072,7 +1072,7 @@ pub fn parse_stage_name_identifier(parser: &mut Parser) -> Result<Ident, ParserE
Token::Minus => ident.push('-'),
Token::Number(n, _) => ident.push_str(n),
Token::Word(w) => {
if matches!(w.keyword, Keyword::NoKeyword) {
if matches!(w.keyword, Keyword::NoKeyword) || ident.ends_with("@") {
ident.push_str(w.to_string().as_str());
} else {
parser.prev_token();