def is_ocaml(view):

    matcher = 'source.ocaml'
    location = view.sel()[0].begin()
    return view.match_selector(location, matcher)
Check if the current view is an OCaml source code.
dataset/ETHPy150Open cynddl/sublime-text-merlin/merlin/helpers.py/is_ocaml