File tree 2 files changed +4
-1
lines changed
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)
80
80
IREP_ID_ONE (verilog_assignment_pattern )
81
81
IREP_ID_ONE (verilog_associative_array )
82
82
IREP_ID_ONE (verilog_declarations )
83
+ IREP_ID_ONE (verilog_identifier )
83
84
IREP_ID_ONE (verilog_lifetime )
84
85
IREP_ID_ONE (verilog_logical_equality )
85
86
IREP_ID_ONE (verilog_logical_inequality )
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ static void preprocessor()
64
64
#define IDENTIFIER (text ) \
65
65
{ newstack (yyveriloglval); \
66
66
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)); \
68
70
auto name = PARSER.scopes .lookup (irep_id); \
69
71
return name == nullptr ? TOK_NON_TYPE_IDENTIFIER : \
70
72
name->is_type ? TOK_TYPE_IDENTIFIER : \
You can’t perform that action at this time.
0 commit comments