summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2008-12-31 10:15:51 -0600
committerthatch <devnull@localhost>2008-12-31 10:15:51 -0600
commit3eda54220aedd871c385f983e800d2a47a1354cf (patch)
tree8949f3194ee03c95d08055896f334f0ebeec6dd8
parent3715602040680b16d0062d026a856f36928dab38 (diff)
downloadpygments-3eda54220aedd871c385f983e800d2a47a1354cf.tar.gz
Make the `GroffLexer` play nice with being asked to analyse the empty string
-rw-r--r--pygments/lexers/text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index ebcf38af..75a90bb0 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -475,7 +475,7 @@ class GroffLexer(RegexLexer):
}
def analyse_text(text):
- if text[0] != '.':
+ if text[:1] != '.':
return False
if text[:3] == '.\\"':
return True