mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-24 00:14:36 +00:00
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. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| const2ast.cc | ||
| Makefile.inc | ||
| preproc.cc | ||
| preproc.h | ||
| verilog_frontend.cc | ||
| verilog_frontend.h | ||
| verilog_lexer.l | ||
| verilog_parser.y | ||