Commits

Georg Brandl committed e149475

#499: Fix ocaml lexing of \\ in strings.

Comments (0)

Files changed (1)

pygments/lexers/functional.py

 
     tokens = {
         'escape-sequence': [
-            (r'\\[\"\'ntbr]', String.Escape),
+            (r'\\[\\\"\'ntbr]', String.Escape),
             (r'\\[0-9]{3}', String.Escape),
             (r'\\x[0-9a-fA-F]{2}', String.Escape),
         ],