summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configshell/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configshell/shell.py b/configshell/shell.py
index 0cf6141..32701ec 100644
--- a/configshell/shell.py
+++ b/configshell/shell.py
@@ -107,7 +107,7 @@ class ConfigShell(object):
# Grammar of the command line
command = locatedExpr(Word(alphanums + '_'))('command')
- var = Word(alphanums + '_\+/.<>()~@:-%]')
+ var = Word(alphanums + '_\+/.<>()~@:-%[]')
value = var
keyword = Word(alphanums + '_\-')
kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*')
@@ -122,7 +122,7 @@ class ConfigShell(object):
self._parser = parser
if tty:
- readline.set_completer_delims('\t\n ~!#$^&()[{]}\|;\'",?')
+ readline.set_completer_delims('\t\n ~!#$^&(){}\|;\'",?')
readline.set_completion_display_matches_hook(
self._display_completions)