diff options
author | Georg Brandl <georg@python.org> | 2012-03-10 18:53:53 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-03-10 18:53:53 +0100 |
commit | 411c9dd8238982e038a355a457512b31362a1f91 (patch) | |
tree | aef15d0f23e92bfbd026b1e18122f5e12c892034 | |
parent | 4d4baf6c84b1c582ea10fd2eb1c734226734bfa4 (diff) | |
download | pygments-411c9dd8238982e038a355a457512b31362a1f91.tar.gz |
Fixes #746: OCaml allows (*) as an operator, not comment start.
-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 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), |