summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackbird <devnull@localhost>2007-02-15 19:42:24 +0100
committerblackbird <devnull@localhost>2007-02-15 19:42:24 +0100
commit173089751c8222db11e9b2c9456485ccb8b1530a (patch)
tree2a0449650f0025fafcfae067bab038de21d83bd9
parent3a469bbb741c9ab962661735706dd7de445f8126 (diff)
downloadpygments-173089751c8222db11e9b2c9456485ccb8b1530a.tar.gz
[svn] fixed apache lexer (this solution looks like a workaround but it still works like it should. comments are just allowed as line comments, not inline comments -- thus with leading whitespace but no leading characters. because the comment rule does not apply to the value part this still works). just ignore this checkin message, it just exists so that i understand what i did ^^
-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 76443496..20e07bf3 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -379,8 +379,8 @@ class ApacheConfLexer(RegexLexer):
tokens = {
'root': [
- (r'^(\s*)(#.*?)$', bygroups(Text, Comment)),
(r'\s+', Text),
+ (r'(#.*?)$', Comment),
(r'(<[^\s>]+)(?:(\s+)(.*?))?(>)',
bygroups(Name.Tag, Text, String, Name.Tag)),
(r'([a-zA-Z][a-zA-Z0-9]*)(\s+)',