mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
comment handling bug
This commit is contained in:
parent
5cad88e0f0
commit
e918420616
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue