Skip to content

Commit 8c65d7f

Browse files
committed
modify the flex file so that the synthesis attributes and directives
inside (* and *) delimiters are skipped
1 parent 452a0af commit 8c65d7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/libvqm/vqm_parser.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
%%
4040
^[ \t]*\/\/[^\n\r]*(\n|\r\n) /* skip one-line comments */
41+
^[ \t]*\(\*[^\n\r]*\*\) /* skip synthesis attributes and directives */
4142
[ \t]+ /* skip white spaces */
4243
! /* skip the logical operator ! applied on the input ports of the lut - this results in lut mask not being valid anoymore */
4344
(\n|\r\n) /* skip empty lines */

0 commit comments

Comments
 (0)