package textmate-language

  1. Overview
  2. Docs
Tokenizing code with TextMate grammars for syntax highlighting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

textmate-language-0.5.0.tbz
sha256=8b88d1acdab35a8ea11822d7f431d641cee77cf4ddc67ca34148cfc94dbd97e8
sha512=c7512ddb7eb9a0152c5de831ff5faa4436a723c57d1f71ce2950180c307c63087709c9cf252859108e02620c1e058bffa4971d4d3e1cc1b42aed97d4bdfcea6f

Description

This package provides functions for reading TextMate grammars and tokenizing code on a line-by-line basis. textmate-language can read grammars from the document types of the plist-xml, ezjsonm, and yojson libraries.

Tags

highlighting

Published: 07 Mar 2026

README

ocaml-textmate-language

textmate-language provides functions for reading TextMate grammars and tokenizing lines of source code. It is useful for syntax highlighting, but does not provide any functions for assigning visual styles to tokens.

textmate-language follows SemVer. It is currently in 0.Y.z, so Y will be incremented for breaking changes.

Dependencies (3)

  1. ocaml >= "4.08"
  2. oniguruma >= "0.1.2"
  3. dune >= "2.7"

Dev Dependencies (5)

  1. odoc with-doc
  2. yojson >= "1.7" & with-test
  3. ezjsonm >= "1.2" & with-test
  4. alcotest >= "1.4" & with-test
  5. plist-xml >= "0.5" & with-test

Used by (3)

  1. camyll >= "0.4.2"
  2. hilite >= "0.1.1"
  3. yocaml_markdown >= "2.4.1"

Conflicts

None