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 | b38f9c553ae40c87f618d58c08a523a0b3cd3ccc (patch) | |
| tree | aef15d0f23e92bfbd026b1e18122f5e12c892034 /pygments | |
| parent | 027a4b82369eed006aa41bcc83cbbaa64d009f52 (diff) | |
| download | pygments-git-b38f9c553ae40c87f618d58c08a523a0b3cd3ccc.tar.gz | |
Fixes #746: OCaml allows (*) as an operator, not comment start.
Diffstat (limited to 'pygments')
| -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), |
