comment handling bug

This commit is contained in:
adam j hartz 2015-03-24 22:30:07 -04:00
parent 5cad88e0f0
commit e918420616

View file

@ -318,7 +318,7 @@ class Lexer(object):
def input(self, s):
"""Calls the lexer on the string s."""
s = re.sub(r'#.*?\n', '', s)
s = re.sub(r'#.*', '', s)
self.token_stream = preprocess_tokens(tok(s))
def token(self):