Whitespace cleanup
This commit is contained in:
parent
89a2057cac
commit
430ef5c935
@ -94,8 +94,8 @@ class ShellLexer:
|
|||||||
raise ValueError("No escaped character")
|
raise ValueError("No escaped character")
|
||||||
# In posix shells, only the quote itself or the escape
|
# In posix shells, only the quote itself or the escape
|
||||||
# character may be escaped within quotes.
|
# character may be escaped within quotes.
|
||||||
if escapedstate in self.quotes and \
|
if (escapedstate in self.quotes and nextchar != self.state and
|
||||||
nextchar != self.state and nextchar != escapedstate:
|
nextchar != escapedstate):
|
||||||
self.token = self.token + self.state
|
self.token = self.token + self.state
|
||||||
self.token = self.token + nextchar
|
self.token = self.token + nextchar
|
||||||
self.state = escapedstate
|
self.state = escapedstate
|
||||||
|
Loading…
Reference in New Issue
Block a user