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— Impliessome. Include parsers for most common languages.all— Impliesmost. Include parsers for all supported languages.runtime-c(enabled by default) — Use the standard tree-sitter C runtime. Seesyntastica’s WebAssembly support for more information.runtime-c2rust— Use the pure Rust tree-sitter runtime. Seesyntastica’s WebAssembly support for more information.docs— Meant to be enabled when building docs
Structs§
- Language
SetImpl - An implementation of
LanguageSetincluding all languages in the enabled feature set.
Enums§
- Lang
- An enum of every supported language in the current feature set.
Constants§
- LANGUAGES
- A list of all languages supported by the current feature set.
- LANGUAGE_
NAMES - A list of all language names supported by the current feature set.
Functions§
- asm
mostorasm - Get the parser for asm.
- bash
someorbash - Get the parser for bash.
- c
someorc - Get the parser for c.
- c_sharp
mostorc_sharp - Get the parser for c_sharp.
- comment
mostorcomment - Get the parser for comment.
- cpp
someorcpp - Get the parser for cpp.
- css
someorcss - Get the parser for css.
- dart
mostordart - Get the parser for dart.
- diff
mostordiff - Get the parser for diff.
- ebnf
allorebnf - Get the parser for ebnf.
- ejs
allorejs - Get the parser for ejs.
- erb
allorerb - Get the parser for erb.
- go
someorgo - Get the parser for go.
- haskell
mostorhaskell - Get the parser for haskell.
- hexdump
allorhexdump - Get the parser for hexdump.
- html
someorhtml - Get the parser for html.
- java
someorjava - Get the parser for java.
- javascript
someorjavascript - Get the parser for javascript.
- jsdoc
mostorjsdoc - Get the parser for jsdoc.
- json
someorjson - Get the parser for json.
- json5
mostorjson5 - Get the parser for json5.
- jsonc
mostorjsonc - Get the parser for jsonc.
- julia
allorjulia - Get the parser for julia. (not supported on WebAssembly targets)
- latex
mostorlatex - Get the parser for latex.
- llvm
allorllvm - Get the parser for llvm. (not supported on WebAssembly targets)
- lua
someorlua - Get the parser for lua.
- markdown
mostormarkdown - Get the parser for markdown.
- markdown_
inline mostormarkdown_inline - Get the parser for markdown_inline.
- ocaml
allorocaml - Get the parser for ocaml.
- ocaml_
interface allorocaml_interface - Get the parser for ocaml_interface.
- php
mostorphp - Get the parser for php.
- python
someorpython - Get the parser for python.
- ql
allorql - Get the parser for ql.
- regex
mostorregex - Get the parser for regex.
- ruby
mostorruby - Get the parser for ruby. (not supported on the
wasm32-unknown-unknowntarget) - rush
allorrush - Get the parser for rush.
- rust
someorrust - Get the parser for rust.
- scala
mostorscala - Get the parser for scala.
- scss
mostorscss - Get the parser for scss.
- toml
someortoml - Get the parser for toml.
- tsx
someortsx - Get the parser for tsx.
- typescript
someortypescript - Get the parser for typescript.
- verilog
allorverilog - Get the parser for verilog.
- wat
allorwat - Get the parser for wat.
- yaml
someoryaml - Get the parser for yaml. (not supported on the
wasm32-unknown-unknowntarget)