Expand description

syntastica-parsers-git

Collection of tree-sitter parsers for syntastica, fetching with git in the build-script.

See the project overview for more information on all parser collections.

Improving compilation speed

Due to the nature of this parser collection, compilation can take a very long time with many parsers enabled, since all parsers are cloned and built every time the build script is run. In a local development environment you can use the following environment variables to reuse files from a previous run.

Option one: Setting a different clone directory

You can set SYNTASTICA_PARSERS_CLONE_DIR to a directory to clone the parser repositories to, so that they only have to be built but not downloaded every time.

Option two: Reusing built archives

Set SYNTASTICA_PARSERS_CACHE_DIR to a directory where all built parsers will be copied to. When a binary for a parser is already present in that directory, it will be reused the next time the build script is run.

List of included parsers

List of parsers included in the some feature
List of parsers additionally included in the most feature
List of parsers additionally included in the all feature

Features

Every supported language has a feature with the same name as the respective public function. Additionally the three feature groups some, most, and all are available.

  • some — Include parsers for the most widely known supported languages.

  • most — Implies some. Include parsers for most common languages.

  • all — Implies most. Include parsers for all supported languages.

  • runtime-c (enabled by default) — Use the standard tree-sitter C runtime. See syntastica’s WebAssembly support for more information.

  • runtime-c2rust — Use the pure Rust tree-sitter runtime. See syntastica’s WebAssembly support for more information.

  • docs — Meant to be enabled when building docs

Structs

Enums

  • An enum of every supported language in the current feature set.

Constants

  • A list of all languages supported by the current feature set.
  • A list of all language names supported by the current feature set.

Functions