File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 40
40
^ [ \t ]* \/\/ [^ \n\r ]* (\n | \r\n ) /* skip one-line comments */
41
41
^ [ \t ]* \(\* [^ \n\r ]* \*\) /* skip synthesis attributes and directives */
42
42
[ \t ]+ /* skip white spaces */
43
- (! | ~) /* skip the logical operator ! applied on the input ports of the lut - this results in lut mask not being valid anoymore */
43
+ ! /* skip the logical operator ! applied on the input ports of the lut - this results in lut mask not being valid anoymore */
44
44
(\n | \r\n ) /* skip empty lines */
45
45
module return TOKEN_MODULE;
46
46
endmodule return TOKEN_ENDMODULE;
@@ -67,6 +67,11 @@ assign return TOKEN_ASSIGN;
67
67
strcpy (yylval.string , yytext+1 );
68
68
return TOKEN_ESCAPEDID;
69
69
}
70
+ ~\\ [^ ^ \t ^; ]+ {
71
+ yylval.string = (char *)malloc (yyleng - 1 );
72
+ strcpy (yylval.string , yytext+2 );
73
+ return TOKEN_ESCAPEDID;
74
+ }
70
75
\" [^ \" ]* \" {
71
76
yylval.string = (char *)malloc (yyleng-1 );
72
77
strncpy (yylval.string , yytext+1 , yyleng-2 );
You can’t perform that action at this time.
0 commit comments