Crate syntastica_parsers_git
source ·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
- An implementation of
LanguageSet
including all languages in the enabled feature set.
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
- asm
most
orasm
Get the parser for asm. - bash
some
orbash
Get the parser for bash. - c
some
orc
Get the parser for c. - c_sharp
most
orc_sharp
Get the parser for c_sharp. - comment
most
orcomment
Get the parser for comment. - cpp
some
orcpp
Get the parser for cpp. - css
some
orcss
Get the parser for css. - dart
most
ordart
Get the parser for dart. - diff
most
ordiff
Get the parser for diff. - ebnf
all
orebnf
Get the parser for ebnf. - ejs
all
orejs
Get the parser for ejs. - erb
all
orerb
Get the parser for erb. - go
some
orgo
Get the parser for go. - haskell
most
orhaskell
Get the parser for haskell. - hexdump
all
orhexdump
Get the parser for hexdump. - html
some
orhtml
Get the parser for html. - java
some
orjava
Get the parser for java. - javascript
some
orjavascript
Get the parser for javascript. - jsdoc
most
orjsdoc
Get the parser for jsdoc. - json
some
orjson
Get the parser for json. - json5
most
orjson5
Get the parser for json5. - jsonc
most
orjsonc
Get the parser for jsonc. - julia
all
orjulia
Get the parser for julia. (not supported on WebAssembly targets) - latex
most
orlatex
Get the parser for latex. - llvm
all
orllvm
Get the parser for llvm. (not supported on WebAssembly targets) - lua
some
orlua
Get the parser for lua. - markdown
most
ormarkdown
Get the parser for markdown. - markdown_inline
most
ormarkdown_inline
Get the parser for markdown_inline. - ocaml
all
orocaml
Get the parser for ocaml. - ocaml_interface
all
orocaml_interface
Get the parser for ocaml_interface. - php
most
orphp
Get the parser for php. - python
some
orpython
Get the parser for python. - ql
all
orql
Get the parser for ql. - regex
most
orregex
Get the parser for regex. - ruby
most
orruby
Get the parser for ruby. (not supported on thewasm32-unknown-unknown
target) - rush
all
orrush
Get the parser for rush. - rust
some
orrust
Get the parser for rust. - scala
most
orscala
Get the parser for scala. - scss
most
orscss
Get the parser for scss. - toml
some
ortoml
Get the parser for toml. - tsx
some
ortsx
Get the parser for tsx. - typescript
some
ortypescript
Get the parser for typescript. - verilog
all
orverilog
Get the parser for verilog. - wat
all
orwat
Get the parser for wat. - yaml
some
oryaml
Get the parser for yaml. (not supported on thewasm32-unknown-unknown
target)