3 Jun 2002 10:45
Multiline strings in C and Lua
Philippe Lhoste <PhiLho <at> gmx.net>
2002-06-03 08:45:01 GMT
2002-06-03 08:45:01 GMT
I have found the multiline string handling for Lua to be incorrect, so I
changed it. See attached LexLua.cxx.
I have also made a similar change in LexCPP.cxx to handle better the Mac
EOLs (\r):
// Handle line continuation generically.
if (sc.ch == '\\') {
if (sc.chNext == '\n' || sc.chNext == '\r') {
sc.Forward();
if (sc.ch == '\r' && sc.chNext == '\n') {
sc.Forward();
}
continue;
}
}
Note that I believe that Lua doesn't supports generical line continuation,
ie. it works only on non-literal strings.
Regards.
--
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
GMX - Die Kommunikationsplattform im Internet.
(Continue reading)
RSS Feed