Skip to content

Commit b95ce08

Browse files
authored
Merge pull request #291 from diffblue/verilog-class-scope-operator
Verilog: class scope operator
2 parents 4306f65 + 760132a commit b95ce08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/verilog/parser.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ int yyverilogerror(const char *error)
432432
%token TOK_LESSLESSLESSEQUAL "<<<="
433433
%token TOK_GREATERGREATERGREATEREQUAL ">>>="
434434
%token TOK_HASHHASH "##"
435+
%token TOK_COLONCOLON "::"
435436

436437
/* System Verilog Keywords */
437438
%token TOK_ACCEPT_ON "accept_on"

src/verilog/scanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void verilog_scanner_init()
247247
"<->" { SYSTEM_VERILOG_OPERATOR(TOK_LESSMINUSGREATER, "<->"); }
248248
"->" { SYSTEM_VERILOG_OPERATOR(TOK_MINUSGREATER, "->"); }
249249
"'" { SYSTEM_VERILOG_OPERATOR('\'', "'"); }
250+
"::" { SYSTEM_VERILOG_OPERATOR(TOK_COLONCOLON, "::"); }
250251

251252
/* Verilog 1364-1995 keywords */
252253

0 commit comments

Comments
 (0)