package textmate-language
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Tokenizing code with TextMate grammars for syntax highlighting
Install
dune-project
Dependency
Authors
Maintainers
Sources
textmate-language-0.6.0.tbz
sha256=b6f10288af44dadd2f7c7a24070b4a69362740aa4673e967f574b4d8c44bfb02
sha512=78215a4c4de5ee931efe27ee822d12ef4ca165c8a53b62f101d45f2bc843a1650da8e8976eeea55fb55231e63afca0ee3f915d70026afdcae390dacb4711df17
doc/CHANGES.html
0.6.0 (April 10, 2026)
- Prevent tokenizer hangs from zero-width regex loops by enforcing progress in
match,while, andbegin/endtransitions (#2), contributed by @davesnx. - Add regression tests for zero-width begin/end and zero-width match loop grammars (#2), contributed by @davesnx.
- Behavior change: zero-width rules that do not consume input are treated as non-progress and skipped/advanced for safety, so they no longer emit tokens (#2), contributed by @davesnx.
- Update the dependency
onigurumato version 0.2. - Increase the minimum required OCaml version to 4.13.
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-xmlto 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_filetypefunction.
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_argumentexception.
0.2.0 (November 26, 2020)
- Switch from PCRE to Oniguruma.
- Substitute captures from
beginpattern for backreferences inendandwhilepatterns.
0.1.0 (August 30, 2020)
Initial release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page