aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpp.py
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 /src/gpp.py
parentupdate version (diff)
downloadgpp-dbdb247ae08dea6096477b57afb86a5028c01d14.tar.gz
gpp-dbdb247ae08dea6096477b57afb86a5028c01d14.tar.bz2
gpp-dbdb247ae08dea6096477b57afb86a5028c01d14.tar.xz
fix another bug1.4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/gpp.py')
-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