From dbdb247ae08dea6096477b57afb86a5028c01d14 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 07:58:42 +0200 Subject: fix another bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gpp.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/gpp.py b/src/gpp.py index fb240fe..ce35380 100755 --- a/src/gpp.py +++ b/src/gpp.py @@ -185,6 +185,12 @@ def pp(line): rc.append(ord('\'')) rc.append(ord('"')) rc.append(ord('$')) + else: + rc += symbol + if c == ord('\''): + rc.append(c) + rc.append(ord('\\')) + rc.append(c) rc.append(c) elif line[i - 1 : i + symlen - 1] == symbol: symb = True -- cgit v1.2.3-70-g09d2