lemon/bits/item_writer.h
changeset 2255 4a9cc8c800ae
parent 2254 50cb2b90daa9
child 2386 81b47fc5c444
     1.1 --- a/lemon/bits/item_writer.h	Wed Oct 18 15:05:12 2006 +0000
     1.2 +++ b/lemon/bits/item_writer.h	Wed Oct 18 15:18:27 2006 +0000
     1.3 @@ -84,6 +84,10 @@
     1.4          is.putback(c);
     1.5          if (!readableParsed('{', '}', is)) return false;
     1.6          break;
     1.7 +      case '/':
     1.8 +        is.putback(c);
     1.9 +        if (!readableParsed('/', '/', is)) return false;
    1.10 +        break;
    1.11        case '\"':
    1.12          is.putback(c);
    1.13          if (!readableQuoted('\"', is)) return false;
    1.14 @@ -112,7 +116,7 @@
    1.15        char c;
    1.16        bool esc = false;
    1.17        if (!is.get(c) || c != quote) return false;
    1.18 -      while (is.get(c) && c != quote && !esc) {
    1.19 +      while (is.get(c) && (c != quote || esc)) {
    1.20          if (c == '\\') esc = !esc;
    1.21          else esc = false;
    1.22        }