Commits

thatch  committed dd2bd7e

Make the ocaml lexer match larger chunks of string and comment data.

  • Participants
  • Parent commits 238cfc1
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/functional.py

             (r'[~?][a-z][\w\']*:', Name.Variable),
         ],
         'comment': [
-            (r'[^(*)]', Comment),
+            (r'[^(*)]+', Comment),
             (r'\(\*', Comment, '#push'),
             (r'\*\)', Comment, '#pop'),
             (r'[(*)]', Comment),
         ],
         'string': [
-            (r'[^\\"]', String.Double),
+            (r'[^\\"]+', String.Double),
             include('escape-sequence'),
             (r'\\\n', String.Double),
             (r'"', String.Double, '#pop'),