diff options
author | Georg Brandl <georg@python.org> | 2014-10-16 09:33:43 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-16 09:33:43 +0200 |
commit | 5727fe42393a86817bd0f702d93c3fc399b68eb3 (patch) | |
tree | 796e787baf37e7362a802aaf9b6303127ff35098 /pygments/lexers/objective.py | |
parent | f8f38adf82e18ea5c33d532ab3429bb22eed0921 (diff) | |
download | pygments-5727fe42393a86817bd0f702d93c3fc399b68eb3.tar.gz |
Fix "matches empty string" complaints from regexlint.
Diffstat (limited to 'pygments/lexers/objective.py')
-rw-r--r-- | pygments/lexers/objective.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/objective.py b/pygments/lexers/objective.py index 9287fae0..70f6819f 100644 --- a/pygments/lexers/objective.py +++ b/pygments/lexers/objective.py @@ -11,7 +11,8 @@ import re -from pygments.lexer import include, bygroups, using, this, words, inherit +from pygments.lexer import include, bygroups, using, this, words, inherit, \ + default from pygments.token import Text, Keyword, Name, String, Operator, \ Number, Punctuation, Literal @@ -136,7 +137,7 @@ def objective(baselexer): (r'[a-zA-Z$_][\w$]*:', Name.Function), (';', Punctuation, '#pop'), (r'\{', Punctuation, 'function'), - ('', Text, '#pop'), + default('#pop'), ], 'literal_number': [ (r'\(', Punctuation, 'literal_number_inner'), |