Commits

Anonymous committed 87584d9

[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 ^^

Comments (0)

Files changed (1)

pygments/lexers/text.py

 
     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+)',