Commits

gbrandl  committed 876f734

[svn] Even more.

  • Participants
  • Parent commits e318e0d
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

             (r'\n', Text),
             (r'\s+', Text),
             (r'\\\n', Text), # line continuation
-            (r'//.*?(?!\\)\n', Comment),
+            (r'//(\n|(.|\n)*?[^\\]\n)', Comment),
             (r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment),
         ],
         'statements': [
             (r'\n', Text),
             (r'\s+', Text),
             (r'\\\n', Text), # line continuation
-            (r'//.*?(?!\\)\n', Comment),
+            (r'//(\n|(.|\n)*?[^\\]\n)', Comment),
             (r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment),
             (r'[{}]', Keyword),
             (r'L?"', String, 'string'),