mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
fix embarrassing bug
This commit is contained in:
parent
aa343facfd
commit
3fc4d759d2
1 changed files with 3 additions and 1 deletions
|
@ -198,9 +198,11 @@ def handle_rbracket(state, token, stream):
|
|||
yield _new_token('RBRACKET', ']', token.start)
|
||||
|
||||
def handle_error_space(state, token, stream):
|
||||
if state['pymode'][-1]:
|
||||
if not state['pymode'][-1]:
|
||||
state['last'] = token
|
||||
yield _new_token('WS', ' ', token.start)
|
||||
else:
|
||||
yield from []
|
||||
|
||||
special_handlers = {
|
||||
tokenize.ENCODING: lambda s,t,st: [],
|
||||
|
|
Loading…
Add table
Reference in a new issue