12-30-2015, 04:34 PM
What's the reason for code editors and compilers not allowing multi-line strings with the normal quotes only?
In addition to less redundant characters to type, it becomes easier to detect a missing pair of the quotes in a file if there is a lexer.
I'm working on a simple scripting/markup language parser, and I am going to allow strings to extend to the next line. I am worried there is something I'm overlooking.
Code:
// usually allowed
"multiline\n\
string"
"multine\n"+
"string"
// not allowed
"multiline
string"
I'm working on a simple scripting/markup language parser, and I am going to allow strings to extend to the next line. I am worried there is something I'm overlooking.
![[Image: signature.png]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout