Escape characters in Strings #744
Labels
bug
Indicates an unexpected problem or unintended behavior
component:parser
good first issue
Indicates a good issue for first-time contributors
I used Ampersand-v3.9.1 [development:b051de7] when compiling the following script:
I expected that the texts between quotes after the
INCLUDE
statement would be recognized as a string literal. However, It resulted in the following error message:Diagnosis
After some tinkering, it turned out that I needed to replace the
\
characters with/
. Perhaps the\S
is treated as a separator that terminates the parsing of a literal, because I also tried the example"abc\ndef"
as given in the error message.It seems to me that if beginners get this error, they would have no clue where to look, let alone where to fix this.
The text was updated successfully, but these errors were encountered: