Repository navigation
Releases
Tint 0.3.0
What's Changed
- GregsEx 0.7.0: search spans over a reused line buffer; Tint 0.3.0 by @sebastienros in #32
Full Changelog: v0.2.4...v0.3.0
Tint 0.2.4
What's Changed
- Sync grammars and themes with microsoft/vscode@d041bd1a by @sebastienros in #27
- GregsEx 0.5.8 by @sebastienros in #29
- Tint 0.2.4 by @sebastienros in #30
Full Changelog: v0.2.3...v0.2.4
0.2.3
What's Changed
- Link the Feedz badge to the package versions by @sebastienros in #22
- GregsEx 0.5.7 by @sebastienros in #23
Full Changelog: v0.2.2...v0.2.3
Tint 0.2.2
What's Changed
- Compile the per-line path fully optimized on first use; editor-files benchmarks over Passenger's fixtures by @sebastienros in #20
- GregsEx 0.5.5; Tint 0.2.2 by @sebastienros in #21
Full Changelog: v0.2.1...v0.2.2
Tint 0.2.1
What's Changed
- Expose StateStack.Scopes; keep returned states unmodified by @sebastienros in #19
Full Changelog: v0.2.0...v0.2.1
Tint 0.2.0
Tint
- .NET Framework hosts: the runtime also targets
netstandard2.0, with runtime grammar loading and interpreted
tokenization (no runtime regex compilation, NativeAOT or trimming on that target). The prebuilt grammar and theme
bundles stay on modern .NET. Every assembly is strong-named with the repository's deliberately public development
key,Tint.Development.snk: it gives signed hosts an assembly identity to reference, not package authenticity. AttributedScopeStack.GrammarScopeName: the root scope of the grammar whose rule introduced a scope, so an editor
can tell an embedded language's scopes from the host's. Scope stacks are equal only when each scope comes from the
same grammar.Tokenizer.LineEndScopes: the scopes of the line's synthetic newline, whichTokenizeLineand
TokenizeLineEncodeddrop from their tokens.- GregsEx 0.5.4: patterns with subexpression calls compile on .NET Framework.
Tint.Grammars, Tint.Themes
- Strong-named with the same development key; no content change.
Full Changelog: v0.1.2...v0.2.0
Tint 0.1.2
Tint
- GregsEx 0.5.3: binding a generated kernel (every pattern of a grammar generated with
Kernels="true", on its first
use in each registry) re-plans the pattern to check its fingerprint, and 0.5.2's new analyses had made that five
times dearer (the C# grammar's 547 patterns: 37 ms in 0.5.1, 170-200 ms in 0.5.2, 38-52 ms now). A native AOT tool
highlighting one page with four kernel grammars paid 350 ms more with 0.1.1; it is back to the 0.5.1 cost. Grammars
generated withKernels="true"must be rebuilt against 0.5.3 (the fingerprint changed).
Tint.Grammars, Tint.Themes
- No content change; shipped with the same version.
Full Changelog: v0.1.1...v0.1.2
Tint 0.1.1
Tint
- GregsEx 0.5.2: ahead-of-time kernels now cover patterns with subexpression calls (
\g<name>, recursion included),
which are the VS Code C# grammar's type-name, generic, tuple and declaration patterns, and every kernel gained the
interpreter's alternative skipping and possessive runs. WithKernels="true"the C# grammar gets kernels for 327 of
its 338 patterns (293 before) and tokenizes TextMateSharp'sbigfile.csin 0.75 of the interpreted time (1.34 s
against 1.79 s on an Apple M4 Pro), where 0.5.1 gained 3-4%. Runtime-compiled hot patterns
(TokenizerOptions.CompileHotPatterns) gain the same. Grammars generated withKernels="true"must be rebuilt
against 0.5.2: a kernel of another GregsEx revision is ignored at run time and the pattern runs interpreted.
Tint.Grammars, Tint.Themes
- No content change; shipped with the same version.
Full Changelog: v0.1.0...v0.1.1
Tint 0.1.0
First public release.
Tint
TextMate syntax colorization for .NET 8 and .NET 10, without native dependencies, trimming and NativeAOT safe.
- A port of vscode-textmate 9.3.2's tokenizer (
Tokenizer,
StateStack, injections,whilerules, captures with retokenization, back-referencedend/whilepatterns, time
budget), over GregsEx's Oniguruma flavor. Every case of the
vscode-textmate test suites passes, through runtime-loaded and generated grammars alike. TokenizeLine(ranges and scope stacks) andTokenizeLineEncoded(vscode-textmate's binarytokenizeLine2
layout, with token types and balanced bracket flags fromGrammarInfo). No allocation per line once warm.GrammarRegistry: grammars, embedded languages, injections, missing-grammar reporting, tokenizers and
highlighters.- Themes: VS Code JSON color themes (with
include) and.tmThemefiles, resolved as VS Code does
(ThemeLoadMode.VSCode) or as written (ThemeLoadMode.Raw);Theme.FromSource,Theme.Match,ColorMap. GrammarLoaderandThemeLoaderread JSON and plist files at runtime.Highlighterwith shiki-compatible HTML (HtmlRenderer: inline styles or CSS classes, line numbers, a light and
a dark theme or more through CSS variables) and 24-bit ANSI output (AnsiRenderer), to strings,TextWriter,
IBufferWriter<char>orStringBuilder.- The Tint source generator, in the package:
<TintGrammar>/<TintTheme>items and[TextMateGrammar]/
[TextMateTheme]attributes turn grammar and theme files into classes at build time; every regex is validated
then (an invalid pattern is a build error with its position), patterns are parsed on first use, and hot grammars
can opt into ahead-of-time compiled GregsEx kernels (Kernels). - Opt-in tier-2 compilation of hot patterns at runtime (
TokenizerOptions.CompileHotPatterns). - Themes whose file has no
nametake it from theDisplayNameitem metadata or attribute property (VS Code labels
Monokai, Monokai Dimmed and Tomorrow Night Blue from their extension'spackage.json).
Tint.Grammars
The 84 grammar files of Visual Studio Code's built-in extensions (51 extensions, synced from microsoft/vscode
3ac0f056), generated with Tint's source generator: one class per grammar (CSharpGrammar.Instance),
TintGrammars.CSharp-style properties, TintGrammars.All and TintGrammars.Find(scopeName). Trimming keeps only
the grammars an application references. Licenses in licenses/THIRD-PARTY-NOTICES.txt.
Tint.Themes
The 19 color themes of Visual Studio Code (Dark+, Light+, Dark Modern, the 2026 themes, high contrast, Monokai,
Solarized, Abyss and the others), generated the same way: TintThemes.DarkPlus, TintThemes.All,
TintThemes.Find(name).
Tint.Grammars.Sources and Tint.Themes.Sources
File-only development dependencies with the same VS Code grammar and theme files, for applications that generate
their own classes: $(TintGrammarsSourcesPath)/$(TintThemesSourcesPath) point at the files, @(TintGrammarsSourcesAll)
and @(TintThemesSourcesAll) list them with the bundles' metadata, and the generator compiles only the ones an
application includes, with its own names and kernels. Nothing ships with the application.
Verification
- vscode-textmate suites: 95 tokenization cases and the 72-file themes suite, through the loader and generated paths.
- Differential corpus check against TextMateSharp 2.0.4 over 10,345 files and 3.3 million lines, every difference
judged by vscode-textmate (report), and a 20-minute differential fuzz
campaign over the 84 grammars (report). - Trimmed and NativeAOT smoke apps on linux-x64 and osx-arm64.
Packages on nuget.org: Tint, Tint.Grammars, Tint.Themes, Tint.Grammars.Sources, Tint.Themes.Sources. Playground: https://sebastienros.github.io/tint/
0.0.1
What's Changed
- P0: solution scaffold, CI and grammar sync by @sebastienros in #1
- P2: kernel-size spike report by @sebastienros in #3
- Scheduled VS Code grammar and theme sync by @sebastienros in #4
- P1: core runtime: grammar model, tokenizer, themes, registry by @sebastienros in #5
- P3: source generator for grammars and themes by @sebastienros in #6
- P5: Highlighter, HTML and ANSI renderers, benchmarks by @sebastienros in #8
- P4: Tint.Grammars and Tint.Themes bundles by @sebastienros in #7
- P6: Blazor WebAssembly playground by @sebastienros in #9
- Document the HTML output shape by @sebastienros in #10
- Tint.Grammars.Sources and Tint.Themes.Sources packages by @sebastienros in #11
New Contributors
- @sebastienros made their first contribution in #1
Full Changelog: https://github.com/sebastienros/tint/commits/v0.0.1