diff options
Diffstat (limited to 'http_prompt/lexer.py')
-rw-r--r-- | http_prompt/lexer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/http_prompt/lexer.py b/http_prompt/lexer.py index af8392b..9f64829 100644 --- a/http_prompt/lexer.py +++ b/http_prompt/lexer.py @@ -12,7 +12,8 @@ __all__ = ['HttpPromptLexer'] FLAG_OPTIONS = [name for name, _ in opt.FLAG_OPTIONS] VALUE_OPTIONS = [name for name, _ in opt.VALUE_OPTIONS] -HTTP_METHODS = ('get', 'head', 'post', 'put', 'patch', 'delete', 'options', 'connect') +HTTP_METHODS = ('get', 'head', 'post', 'put', 'patch', + 'delete', 'options', 'connect') def string_rules(state): @@ -46,7 +47,7 @@ class HttpPromptLexer(RegexLexer): (words(HTTP_METHODS, prefix='(?i)', suffix=r'(?!\S)(\s*)'), bygroups(Keyword, Text), combined('redir_out', 'urlpath')), - + (r'(clear)(\s*)', bygroups(Keyword, Text), 'end'), (r'(exit)(\s*)', bygroups(Keyword, Text), 'end'), (r'(help)(\s)*', bygroups(Keyword, Text), 'end'), |