-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when using \
followed by "
#1831
Comments
\
before "
\
followed by "
Thanks for the report. I looked at this and the possible fix would be very slow, so I think until a better fix gets more thought it will need to be worked around as you did. |
…gs (veripool#1831) "...\\..." is a string containing a backslash: \ "...\"..." is a string containing a double-quote: " When parsing double-quoted strings, we must detect embedded escaped backslashes and double-quotes. Detecting when a string terminates with one or more of these characters is tricky. Strings terminating in "...\"" are not uncommon, and have reasonably robust support, but strings terminating in "...\\" are quite rare, and were quite broken. This patch aims to improve the detection of "...\\" (or "...\\\\", or any even number of backslashes in a row immediately preceding a double-quote string terminator.
PR #1840 begins to think about how to solve this. Like @wsnyder said, it's more complex than it looks on the surface. Here's a quick test-case, but by no means an exhaustive one. It just builds on @LapinFou's original text block.
|
Thanks a lot for looking to fix this issue. 👍 |
Hi folks,
I encountered an issue when using AUTO features with the following Verilog code.
After some investigation, I found the problematic line (see below).
If I add a space before the final
"
(\\ ")
instead of\\")
), then it does work.Please see the corrected code below:
I'm using the Verilog mode version 2023.06.06.141322628 with GNU Emacs 28.2 on Linux (RHEL7).
The text was updated successfully, but these errors were encountered: