mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
improvements for tests failing
This commit is contained in:
parent
7dd21943bf
commit
983f48db7d
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ def _tokenize(readline, encoding, tolerant=False, tokenize_ioredirects=True):
|
||||||
break
|
break
|
||||||
else: # ordinary string
|
else: # ordinary string
|
||||||
yield TokenInfo(STRING, token, spos, epos, line)
|
yield TokenInfo(STRING, token, spos, epos, line)
|
||||||
elif token.startswith("$"):
|
elif token.startswith("$") and token[1] not in (LBRACE, LPAR, LSQB):
|
||||||
yield TokenInfo(DOLLARNAME, token, spos, epos, line)
|
yield TokenInfo(DOLLARNAME, token, spos, epos, line)
|
||||||
elif initial.isidentifier(): # ordinary name
|
elif initial.isidentifier(): # ordinary name
|
||||||
if token in ("async", "await"):
|
if token in ("async", "await"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue