File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ IREP_ID_ONE(verilog_array_range)
8080IREP_ID_ONE (verilog_assignment_pattern )
8181IREP_ID_ONE (verilog_associative_array )
8282IREP_ID_ONE (verilog_declarations )
83+ IREP_ID_ONE (verilog_identifier )
8384IREP_ID_ONE (verilog_lifetime )
8485IREP_ID_ONE (verilog_logical_equality )
8586IREP_ID_ONE (verilog_logical_inequality )
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ static void preprocessor()
6464#define IDENTIFIER (text ) \
6565 { newstack (yyveriloglval); \
6666 irep_idt irep_id = text; \
67- stack_expr (yyveriloglval).id (irep_id); \
67+ stack_expr (yyveriloglval).id (ID_verilog_identifier); \
68+ stack_expr (yyveriloglval).set (ID_base_name, irep_id); \
69+ PARSER.set_source_location (stack_expr (yyveriloglval)); \
6870 auto name = PARSER.scopes .lookup (irep_id); \
6971 return name == nullptr ? TOK_NON_TYPE_IDENTIFIER : \
7072 name->is_type ? TOK_TYPE_IDENTIFIER : \
You can’t perform that action at this time.
0 commit comments