From 5727fe42393a86817bd0f702d93c3fc399b68eb3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 16 Oct 2014 09:33:43 +0200 Subject: Fix "matches empty string" complaints from regexlint. --- pygments/lexers/dylan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pygments/lexers/dylan.py') 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 -- cgit v1.2.1