summaryrefslogtreecommitdiff
path: root/pygments/lexers/markup.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/markup.py')
-rw-r--r--pygments/lexers/markup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/markup.py b/pygments/lexers/markup.py
index dcc22250..69202b00 100644
--- a/pygments/lexers/markup.py
+++ b/pygments/lexers/markup.py
@@ -350,7 +350,8 @@ class GroffLexer(RegexLexer):
(r'(\.)(\w+)', bygroups(Text, Keyword), 'request'),
(r'\.', Punctuation, 'request'),
# Regular characters, slurp till we find a backslash or newline
- (r'[^\\\n]*', Text, 'textline'),
+ (r'[^\\\n]+', Text, 'textline'),
+ default('textline'),
],
'textline': [
include('escapes'),