All work

Sublime Text grammars

Syntax family

Hand-written grammars for the formats you actually live in

10 focused Sublime Text syntax packages, each a hand-authored.sublime-syntax with its own syntax-test coverage.

What it shows

What it is and what it demonstrates.

A family of hand-written Sublime Text syntax grammars covering formats the built-in engine handles poorly or not at all — CSV, logfiles, YAML, Markdown (MyST), Python, regex, ledger, Taskfile, kitty config, and a metasyntax for grammar development itself. Each is a focused, publishable package with its own tests.

The problem

Sublime Text's default grammars mishighlight or ignore the formats a working engineer actually lives in — pipe-delimited logs, wide CSV, MyST-flavored Markdown, Taskfiles, terminal configs. Generic highlighting reads columns as prose, breaks on quoted fields, and gives no feedback while you write the grammar itself.

The approach

Each grammar is a hand-authored .sublime-syntax file: scoped, context-stack rules over the engine's regex core, with syntax test files that assert exact scope coverage the editor checks live. The metasyntax grammar is the meta-tool — it highlights .sublime-syntax files themselves, so grammar authoring gets the same feedback loop the grammars give their target formats.

What it demonstrates

A family of published grammars, each with tests and CI, is practice at the small-package discipline: scoping a format precisely, shipping it independently, and maintaining a fleet of focused tools instead of one brittle monolith.

The grammars

10 published packages.

  • CSV Sublime Syntax

    Repository

    Delimited-Data Syntax for Sublime

    1 doc file · 3 test files · CI configured

  • Kitty Sublime Syntax

    Repository

    Kitty Config Syntax for Sublime

    1 doc file · 1 test file · CI configured

  • Logfile Sublime Syntax

    Repository

    Unix Logfile Syntax for Sublime

    1 doc file · 1 test file · CI configured

  • Metasyntax Sublime Syntax

    Repository

    Sublime-Syntax Grammar Highlighter

    1 doc file · 1 test file · CI configured

  • myLedger Sublime Syntax

    Repository

    Ledger Syntax for Sublime

    1 doc file · 1 test file · CI configured

  • myPython Sublime Syntax

    Repository

    Extended Python Syntax for Sublime

    1 doc file · 1 test file · CI configured

  • myRegex Sublime Syntax

    Repository

    Regex-Module Syntax for Sublime

    1 doc file · 1 test file · CI configured

  • MystMarkdown Sublime Syntax

    Repository

    MyST Markdown Syntax for Sublime

    1 doc file · 2 test files · CI configured

  • myTaskfile Sublime Syntax

    Repository

    Taskfile Syntax for Sublime

    1 doc file · 2 test files · CI configured

  • myYAML Sublime Syntax

    Repository

    YAML Formatter & Highlighter for Sublime

    1 doc file · 5 test files · CI configured