aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpp.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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