summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2017-01-31 09:58:50 -0600
committerDavid Beazley <dave@dabeaz.com>2017-01-31 09:58:50 -0600
commita35469c0e7760c65762f71e7e3a893c4f9b1d1c5 (patch)
tree1be19c0cbb5ca13899ea816a308f6270216ece6f
parent393cc558722eb892724701c110e7ae4c101c88c3 (diff)
downloadply-a35469c0e7760c65762f71e7e3a893c4f9b1d1c5.tar.gz
Fixed issue #103
-rw-r--r--ply/cpp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ply/cpp.py b/ply/cpp.py
index ade2987..b6bfc69 100644
--- a/ply/cpp.py
+++ b/ply/cpp.py
@@ -77,6 +77,7 @@ def t_CPP_COMMENT2(t):
r'(//.*?(\n|$))'
# replace with '/n'
t.type = 'CPP_WS'; t.value = '\n'
+ return t
def t_error(t):
t.type = t.value[0]