textmate

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package textmate turns the annotated grammar into a TextMate grammar for VS Code.

TextMate is regular expressions over lines, so the output is a lexical approximation of docs/grammar.ebnf (see docs/design/editors.md). Its inputs are the token shapes the grammar binds by annotation, lex.Keywords, lex.Punctuation, and the quoted terminals lex scans as identifiers, so a keyword added to lex reaches the colors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(file *ebnf.File) ([]byte, error)

Emit writes the tmLanguage for a grammar internal/ebnf has read clean.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL