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

doc/CHANGES.html

0.5.0 (February 28, 2026)

  • Merge PR "Fix OCaml grammar compatibility" (#1) by @davesnx
  • Handle captures specified as lists instead of dictionaries

0.4.0 (January 3, 2024)

  • Rewrite handling of captures, previous version returned indices out of order

0.3.4 (March 14, 2023)

  • Update the test dependency plist-xml to version 0.5.

0.3.3 (October 27, 2022)

  • Support named capture groups.
  • Fix mapping scopes to captures.

0.3.2 (September 28, 2022)

  • Fix bug of incorrect, non-increasing string indices being returned.

0.3.1 (July 15, 2021)

  • Add find_by_filetype function.

0.3.0 (July 4, 2021)

  • Fix handling of while
  • Fix handling of end-delimiter scopes
  • Add type definitions for Ezjsonm and Yojson JSON values
  • Add functions for reading JSON-format grammars into Ezjsonm or Yojson values
  • Add tests

0.2.1 (April 9, 2021)

  • Check capture index bounds and ignore out-of-bounds captures indices in rules. Previously the underlying Oniguruma bindings would throw an Invalid_argument exception.

0.2.0 (November 26, 2020)

  • Switch from PCRE to Oniguruma.
  • Substitute captures from begin pattern for backreferences in end and while patterns.

0.1.0 (August 30, 2020)

Initial release.