summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-08-02 23:38:52 -0400
committerGitHub <noreply@github.com>2019-08-02 23:38:52 -0400
commita53b76a2b1cbd257eb5b359a93e2e12604dea7c9 (patch)
tree07380a7ced0b7499f97d90ed9f6510dcb47ed966 /cmd2/parsing.py
parent54e30144d153b612563a1b8e280da28f10ff22a3 (diff)
parentf1c87a9c220d3a904570f119c6a80bdef225008a (diff)
downloadcmd2-git-a53b76a2b1cbd257eb5b359a93e2e12604dea7c9.tar.gz
Merge pull request #749 from python-cmd2/termination
Added terminators to completion delimiters
Diffstat (limited to 'cmd2/parsing.py')
-rwxr-xr-xcmd2/parsing.py4
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