diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-02 13:03:45 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-02 13:03:45 -0400 |
commit | e617970b58cfe711108ba951050f72761c5a6419 (patch) | |
tree | d2d2b7022e81e8ad93c42322a6345813d1d05389 /cmd2/parsing.py | |
parent | 54e30144d153b612563a1b8e280da28f10ff22a3 (diff) | |
download | cmd2-git-e617970b58cfe711108ba951050f72761c5a6419.tar.gz |
Added terminators to completion delimiters
Diffstat (limited to 'cmd2/parsing.py')
-rwxr-xr-x | cmd2/parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 707140f7..84b2468e 100755 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -379,7 +379,7 @@ class StatementParser: tokens = shlex_split(line) # custom lexing - tokens = self._split_on_punctuation(tokens) + tokens = self.split_on_punctuation(tokens) return tokens def parse(self, line: str, *, expand: bool = True) -> Statement: @@ -675,7 +675,7 @@ class StatementParser: return command, args - def _split_on_punctuation(self, tokens: List[str]) -> List[str]: + def split_on_punctuation(self, tokens: List[str]) -> List[str]: """Further splits tokens from a command line using punctuation characters Punctuation characters are treated as word breaks when they are in |