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
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for bash. (not supported on thewasm32-unknown-unknown
target) - 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
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for cpp. (not supported on thewasm32-unknown-unknown
target) - 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
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for haskell. (not supported on thewasm32-unknown-unknown
target) - hexdump
all
orhexdump
Get the parser for hexdump. - html(
some
orhtml
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for html. (not supported on thewasm32-unknown-unknown
target) - 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
) and non-target_family="wasm"
Get the parser for julia. (not supported on WebAssembly targets) - latex(
most
orlatex
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for latex. (not supported on thewasm32-unknown-unknown
target) - llvm(
all
orllvm
) and non-target_family="wasm"
Get the parser for llvm. (not supported on WebAssembly targets) - lua(
some
orlua
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for lua. (not supported on thewasm32-unknown-unknown
target) - markdown(
most
ormarkdown
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for markdown. (not supported on thewasm32-unknown-unknown
target) - markdown_inline(
most
ormarkdown_inline
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for markdown_inline. (not supported on thewasm32-unknown-unknown
target) - ocaml(
all
orocaml
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for ocaml. (not supported on thewasm32-unknown-unknown
target) - ocaml_interface(
all
orocaml_interface
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for ocaml_interface. (not supported on thewasm32-unknown-unknown
target) - php(
most
orphp
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for php. (not supported on thewasm32-unknown-unknown
target) - python(
some
orpython
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for python. (not supported on thewasm32-unknown-unknown
target) - ql
all
orql
Get the parser for ql. - regex
most
orregex
Get the parser for regex. - ruby(
most
orruby
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)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
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for scala. (not supported on thewasm32-unknown-unknown
target) - 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. - ursa
all
orursa
Get the parser for ursa. - verilog
all
orverilog
Get the parser for verilog. - wat
all
orwat
Get the parser for wat. - yaml(
some
oryaml
) and not (WebAssembly andtarget_vendor="unknown"
andtarget_os="unknown"
andtarget_env=""
)Get the parser for yaml. (not supported on thewasm32-unknown-unknown
target)