mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
better check for avoiding double-wrapping
This commit is contained in:
parent
9f9cd1894e
commit
340b70999c
1 changed files with 5 additions and 5 deletions
|
@ -185,15 +185,15 @@ class Execer(object):
|
||||||
if prev_indent == curr_indent:
|
if prev_indent == curr_indent:
|
||||||
raise original_error
|
raise original_error
|
||||||
maxcol = self._find_next_break(line, last_error_col)
|
maxcol = self._find_next_break(line, last_error_col)
|
||||||
if line.startswith('$['):
|
|
||||||
# if we have already wrapped this in subproc tokens
|
|
||||||
# and it still doesn't work, adding more won't help
|
|
||||||
# anything
|
|
||||||
raise original_error
|
|
||||||
sbpline = subproc_toks(line,
|
sbpline = subproc_toks(line,
|
||||||
returnline=True,
|
returnline=True,
|
||||||
maxcol=maxcol,
|
maxcol=maxcol,
|
||||||
lexer=self.parser.lexer)
|
lexer=self.parser.lexer)
|
||||||
|
if line.startswith('$[$['):
|
||||||
|
# if we have already wrapped this in subproc tokens
|
||||||
|
# and it still doesn't work, adding more won't help
|
||||||
|
# anything
|
||||||
|
raise original_error
|
||||||
if sbpline is None:
|
if sbpline is None:
|
||||||
# subprocess line had no valid tokens, likely because
|
# subprocess line had no valid tokens, likely because
|
||||||
# it only contained a comment.
|
# it only contained a comment.
|
||||||
|
|
Loading…
Add table
Reference in a new issue