HFST
HFST language support for Zed: TWOL (Two-Level Morphology) and LEXC (Lexicon Compiler)
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for HFST. The extension's id is hfst.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
HFST for Zed
Zed extension providing syntax highlighting for HFST (Helsinki Finite-State Toolkit) language files:
- TWOL (
.twol) — Two-Level Morphology rules - LEXC (
.lexc) — Lexicon Compiler format
Features
- Syntax highlighting for TWOL and LEXC files
- Powered by tree-sitter-twol and tree-sitter-lexc
Installation
Search for HFST in the Zed Extensions marketplace, or install via the command palette:
zed: extensions
TWOL Highlighting
Highlights section keywords (Alphabet, Sets, Definitions, Rules), rule operators (=>, <=, <=>), symbol pairs (a:b), wildcards, epsilon (0), word boundary (.#.), set and definition names, regex operators, and comments.
LEXC Highlighting
Highlights section keywords (LEXICON, Multichar_Symbols), lexicon names, continuation references, entry forms (upper:lower), multichar symbols, and comments.
License
MIT