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 4040^ [ \t ]* \/\/ [^ \n\r ]* (\n | \r\n ) /* skip one-line comments */
4141^ [ \t ]* \(\* [^ \n\r ]* \*\) /* skip synthesis attributes and directives */
4242[ \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 */
4444(\n | \r\n ) /* skip empty lines */
4545module return TOKEN_MODULE;
4646endmodule return TOKEN_ENDMODULE;
@@ -67,6 +67,11 @@ assign return TOKEN_ASSIGN;
6767 strcpy (yylval.string , yytext+1 );
6868 return TOKEN_ESCAPEDID;
6969 }
70+ ~\\ [^ ^ \t ^; ]+ {
71+ yylval.string = (char *)malloc (yyleng - 1 );
72+ strcpy (yylval.string , yytext+2 );
73+ return TOKEN_ESCAPEDID;
74+ }
7075\" [^ \" ]* \" {
7176 yylval.string = (char *)malloc (yyleng-1 );
7277 strncpy (yylval.string , yytext+1 , yyleng-2 );
You can’t perform that action at this time.
0 commit comments