[Lemon-commits] [lemon_svn] deba: r3006 - hugo/trunk/lemon/bits
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 21:51:47 CET 2006
Author: deba
Date: Wed Oct 18 17:18:27 2006
New Revision: 3006
Modified:
hugo/trunk/lemon/bits/item_writer.h
Log:
It have not been saved
Modified: hugo/trunk/lemon/bits/item_writer.h
==============================================================================
--- hugo/trunk/lemon/bits/item_writer.h (original)
+++ hugo/trunk/lemon/bits/item_writer.h Wed Oct 18 17:18:27 2006
@@ -84,6 +84,10 @@
is.putback(c);
if (!readableParsed('{', '}', is)) return false;
break;
+ case '/':
+ is.putback(c);
+ if (!readableParsed('/', '/', is)) return false;
+ break;
case '\"':
is.putback(c);
if (!readableQuoted('\"', is)) return false;
@@ -112,7 +116,7 @@
char c;
bool esc = false;
if (!is.get(c) || c != quote) return false;
- while (is.get(c) && c != quote && !esc) {
+ while (is.get(c) && (c != quote || esc)) {
if (c == '\\') esc = !esc;
else esc = false;
}
More information about the Lemon-commits
mailing list