diff options
author | Jerome Martin <jxm@risingtidesystems.com> | 2011-06-10 00:54:09 +0200 |
---|---|---|
committer | Jerome Martin <jxm@risingtidesystems.com> | 2011-06-10 00:54:57 +0200 |
commit | e6985637e56bee5e82c205e06f5ba0b75813e727 (patch) | |
tree | 484cc45e97975fdb3cd7e850e861ec4abf684456 | |
parent | 2d194d5fb5ae80cbd81233e871afe80a9758da31 (diff) | |
download | configshell-fb-e6985637e56bee5e82c205e06f5ba0b75813e727.tar.gz |
Now allows '%' in grammar for vars.
-rw-r--r-- | configshell/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configshell/shell.py b/configshell/shell.py index 604ef22..4b9439d 100644 --- a/configshell/shell.py +++ b/configshell/shell.py @@ -92,7 +92,7 @@ class ConfigShell(object): >value< := var? path := bookmark/pathstd/[0-9]+/'..'/'.'/'*' <pathstd> := ([a-zA-Z0-9:_.-]*, '/', [a-zA-Z0-9:_./-]*, '*'?) - <var> := [a-zA-Z0-9_\\+/.<>~@:-]+ + <var> := [a-zA-Z0-9_\\+/.<>~@:-%]+ <bookmark> := '@', var? ''' @@ -109,7 +109,7 @@ class ConfigShell(object): self._exit = False self._parser = simpleparse.parser.Parser(self.grammar, root='line') - readline.set_completer_delims('\t\n ~!#$%^&()[{]}\|;\'",?') + readline.set_completer_delims('\t\n ~!#$^&()[{]}\|;\'",?') self.log = log.Log() |