We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e47fe commit 46f39b0Copy full SHA for 46f39b0
contextshell/CommandParser.py
@@ -6,21 +6,21 @@ def tokenize(text: str) -> List[str]:
6
tokens = []
7
tok = ''
8
9
- def end_token():
+ def finish_token():
10
nonlocal tok, tokens
11
if len(tok) > 0:
12
tokens.append(tok)
13
14
15
for char in text:
16
if char in "{}:#":
17
- end_token()
+ finish_token()
18
tokens.append(char)
19
elif char.isspace():
20
21
else:
22
tok += char
23
24
return tokens
25
26
test_coverage.sh
@@ -2,4 +2,4 @@
2
rm -r htmlcov
3
coverage3 erase
4
coverage3 run --source=contextshell -m unittest discover -s tests -t tests -p '*Tests.py'
5
-coverage3 report html && firefox htmlcov/index.html
+coverage3 report
0 commit comments