diff options
author | Georg Brandl <georg@python.org> | 2010-04-24 11:15:16 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-04-24 11:15:16 +0200 |
commit | e1570ac6eebe3c23dc9c3e44327e580fb4527d1c (patch) | |
tree | 27d77140aaf988732c9c67b19c8bdf3e46b3f792 /pygments/lexers | |
parent | c744e791cd504ce81fb0afdd928255564f249a11 (diff) | |
download | pygments-e1570ac6eebe3c23dc9c3e44327e580fb4527d1c.tar.gz |
#499: Fix ocaml lexing of \\ in strings.
Diffstat (limited to 'pygments/lexers')
-rw-r--r-- | pygments/lexers/functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index ffbd7538..4e429aa6 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -550,7 +550,7 @@ class OcamlLexer(RegexLexer): 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), ], |