diff --git a/mojoshader_parser_hlsl.lemon b/mojoshader_parser_hlsl.lemon index d68d4afc..451dc21b 100644 --- a/mojoshader_parser_hlsl.lemon +++ b/mojoshader_parser_hlsl.lemon @@ -487,11 +487,7 @@ switch_case ::= DEFAULT COLON. %type identifier { TokenData } %destructor identifier { (void) ctx; } // !!! FIXME: remove this later, it's just to shut up the compiler for now. -identifier(A) ::= IDENTIFIER(B). -{ - A.token = B.token; - A.tokenlen = B.tokenlen; -} +identifier(A) ::= IDENTIFIER(B). { A = B; } // the expression stuff is based on Jeff Lee's ANSI C grammar. primary_expr ::= identifier.