summaryrefslogtreecommitdiff
path: root/pygments/lexers/dylan.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-16 09:33:43 +0200
committerGeorg Brandl <georg@python.org>2014-10-16 09:33:43 +0200
commit5727fe42393a86817bd0f702d93c3fc399b68eb3 (patch)
tree796e787baf37e7362a802aaf9b6303127ff35098 /pygments/lexers/dylan.py
parentf8f38adf82e18ea5c33d532ab3429bb22eed0921 (diff)
downloadpygments-5727fe42393a86817bd0f702d93c3fc399b68eb3.tar.gz
Fix "matches empty string" complaints from regexlint.
Diffstat (limited to 'pygments/lexers/dylan.py')
-rw-r--r--pygments/lexers/dylan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/dylan.py b/pygments/lexers/dylan.py
index b4f2a976..e13627a2 100644
--- a/pygments/lexers/dylan.py
+++ b/pygments/lexers/dylan.py
@@ -11,7 +11,7 @@
import re
-from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions
+from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, default
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation, Generic, Literal
@@ -120,7 +120,7 @@ class DylanLexer(RegexLexer):
(r'([a-z0-9-]+)(:)([ \t]*)(.*(?:\n[ \t].+)*)',
bygroups(Name.Attribute, Operator, Text, String)),
- ('', Text, 'code') # no header match, switch to code
+ default('code') # no header match, switch to code
],
'code': [
# Whitespace