package ochre

  1. Overview
  2. Docs
Syntax highlighter using TextMate grammars and themes

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ochre-1.1.0.tbz
sha256=a8e38fbcd22fbb68b0f7d93b36a2ba1670e8bd061b43a0177226738307183a32
sha512=7b344c3812be283b0101078564e564732f878ad226c7ce0212c9e9139fb41a291e4d31ad52c949f2978c48e04240d4d22b5b4ae63808e15a21c44a2fbeed8a22

doc/ochre.oniguruma/Oniguruma/RegSet/index.html

Module Oniguruma.RegSetSource

Sourcetype t

A set of regular expressions that can be searched simultaneously.

Sourceval create : _ regex array -> t

create regexes creates a regex set from regexes.

Ownership of regex internals is transferred to the regset (matching Oniguruma's C API). After creating the regset, use the set for searching instead of reusing those regex values directly.

search set string start range options searches string for the leftmost match across all regexes in set using ONIG_REGSET_POSITION_LEAD.

Returns Some (idx, region) where idx is the 0-based index of the matched regex from the array passed to create. Returns None on mismatch. Raises Error on other Oniguruma errors.