summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-10 18:53:53 +0100
committerGeorg Brandl <georg@python.org>2012-03-10 18:53:53 +0100
commit411c9dd8238982e038a355a457512b31362a1f91 (patch)
treeaef15d0f23e92bfbd026b1e18122f5e12c892034
parent4d4baf6c84b1c582ea10fd2eb1c734226734bfa4 (diff)
downloadpygments-411c9dd8238982e038a355a457512b31362a1f91.tar.gz
Fixes #746: OCaml allows (*) as an operator, not comment start.
-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 cc538dbc..ee44f7ce 100644
--- a/pygments/lexers/functional.py
+++ b/pygments/lexers/functional.py
@@ -888,7 +888,7 @@ class OcamlLexer(RegexLexer):
(r'\b([A-Z][A-Za-z0-9_\']*)(?=\s*\.)',
Name.Namespace, 'dotted'),
(r'\b([A-Z][A-Za-z0-9_\']*)', Name.Class),
- (r'\(\*', Comment, 'comment'),
+ (r'\(\*(?![)])', Comment, 'comment'),
(r'\b(%s)\b' % '|'.join(keywords), Keyword),
(r'(%s)' % '|'.join(keyopts[::-1]), Operator),
(r'(%s|%s)?%s' % (infix_syms, prefix_syms, operators), Operator),