Expand description
§sublime-syntaxes
Precompiled Sublime Text syntax definitions for languages not in syntect’s defaults
Provides precompiled Sublime Text .sublime-syntax definitions for languages not included in syntect’s default set. Sourced from bat’s syntax collection.
Syntax files in the syntaxes/ directory are compiled to a binary blob at build time and deserialized at runtime via syntect::dumps, avoiding the cost of parsing YAML definitions on every startup.
§Usage
let extra_syntaxes = sublime_syntaxes::extra_syntax_set();
// Merge with syntect defaults or use standalone§License
Apache-2.0
Functions§
- extra_
syntax_ set - Returns the precompiled
SyntaxSetcontaining extra syntax definitions not included in syntect’s defaults (e.g. TOML).