Commits

Anonymous committed 876f734

[svn] Even more.

Comments (0)

Files changed (1)

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