mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
logical whitespace
This commit is contained in:
parent
4975977b2b
commit
e35d61f2ea
2 changed files with 25 additions and 1 deletions
24
news/space-logical.rst
Normal file
24
news/space-logical.rst
Normal file
|
@ -0,0 +1,24 @@
|
|||
**Added:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Changed:**
|
||||
|
||||
* Changed the ``ExecAlias`` to only be applied when the logical operators
|
||||
(``and``, ``or``) are surrounded by whitespace.
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
|
@ -44,7 +44,7 @@ import xonsh.xoreutils.which as xxw
|
|||
|
||||
@lazyobject
|
||||
def SUB_EXEC_ALIAS_RE():
|
||||
return re.compile(r"@\(|\$\(|!\(|\$\[|!\[|\&\&|\|\||and|or")
|
||||
return re.compile(r"@\(|\$\(|!\(|\$\[|!\[|\&\&|\|\||\s+and\s+|\s+or\s+")
|
||||
|
||||
|
||||
class Aliases(cabc.MutableMapping):
|
||||
|
|
Loading…
Add table
Reference in a new issue