aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 07:58:42 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 07:58:42 +0200
commitdbdb247ae08dea6096477b57afb86a5028c01d14 (patch)
tree8cc05bcb7329dceb88cd76528d7dbe9a0254e8bc
parentupdate version (diff)
downloadgpp-c3c6d23fd86b6422592dc323526f84fc1e8573e4.tar.gz
gpp-c3c6d23fd86b6422592dc323526f84fc1e8573e4.tar.bz2
gpp-c3c6d23fd86b6422592dc323526f84fc1e8573e4.tar.xz
fix another bug1.4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-xsrc/gpp.py6
1 files changed, 6 insertions, 0 deletions
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