3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-04 05:13:31 +00:00
yosys/frontends/verilog
Thomas Sailer 4cd2f03e36 preprocessor: do not destroy double slash escaped identifiers
The preprocessor currently destroys double slash containing escaped
identifiers (for example \a//b ). This is due to next_token trying to
convert single line comments (//) into /* */ comments. This then leads
to an unintuitive error message like this:
ERROR: syntax error, unexpected '*'

This patch fixes the error by recognizing escaped identifiers and
returning them as single token. It also adds a testcase.
2021-12-15 18:06:02 -07:00
..
.gitignore
const2ast.cc Fixing old e-mail addresses and deadnames 2021-06-08 00:39:36 +02:00
Makefile.inc
preproc.cc preprocessor: do not destroy double slash escaped identifiers 2021-12-15 18:06:02 -07:00
preproc.h verilog: save and restore overwritten macro arguments 2021-07-28 21:52:16 -04:00
verilog_frontend.cc verilog: Squash a memory leak. 2021-06-14 17:07:41 +02:00
verilog_frontend.h verilog: Squash a memory leak. 2021-06-14 17:07:41 +02:00
verilog_lexer.l verilog: Squash flex-triggered warning. 2021-09-13 18:58:17 +02:00
verilog_parser.y Specify minimum bison version 3.0+ 2021-10-01 21:18:33 -06:00