summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-04-24 11:15:16 +0200
committerGeorg Brandl <georg@python.org>2010-04-24 11:15:16 +0200
commite1570ac6eebe3c23dc9c3e44327e580fb4527d1c (patch)
tree27d77140aaf988732c9c67b19c8bdf3e46b3f792 /pygments/lexers
parentc744e791cd504ce81fb0afdd928255564f249a11 (diff)
downloadpygments-e1570ac6eebe3c23dc9c3e44327e580fb4527d1c.tar.gz
#499: Fix ocaml lexing of \\ in strings.
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/functional.py2
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),
],