1. Georg Brandl
  2. pygments-main


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

  • Participants
  • Parent commits c890592
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/text.py

View file
     tokens = {
         'root': [
-            (r'^(\s*)(#.*?)$', bygroups(Text, Comment)),
             (r'\s+', Text),
+            (r'(#.*?)$', Comment),
              bygroups(Name.Tag, Text, String, Name.Tag)),