# HG changeset patch # User deba # Date 1161184707 0 # Node ID 4a9cc8c800aeddb09acca8cafdfe07d64d0a287d # Parent 50cb2b90daa9572b900fa5e6c858d14f867599c7 It have not been saved diff -r 50cb2b90daa9 -r 4a9cc8c800ae lemon/bits/item_writer.h --- a/lemon/bits/item_writer.h Wed Oct 18 15:05:12 2006 +0000 +++ b/lemon/bits/item_writer.h Wed Oct 18 15:18:27 2006 +0000 @@ -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; }