Skip to content

Collection of Tree Sitter Parsers bundled into a Rust Crate

License

Notifications You must be signed in to change notification settings

Dav1dde/PepegSitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PepegSitter

Crates.io License Build Status docs.rs

A collection of tree sitter parsers packaged into a single crate with tree-sitter-highlight support. The build.rs is also tuned to statically link parsers that depend on libstdc++.

Every parser is included as a git submodule and has it's own Cargo Feature.

Usage

Enable the parsers you need through cargo features, by default all features are enabled.

// Get the TreeSitter language
let _ = pepegsitter::bash::language();
// Get a new `HighlightConfiguration` for the language.
let _ = pepegsitter::bash::highlight();

// Queries are accessible module constants.
let _ = pepegsitter::bash::HIGHLIGHT_QUERY;

Parsers

Currently includes the following parsers:

  • Bash
  • C
  • C++
  • CSS
  • D
  • Go
  • Haskell
  • Html
  • Java
  • JavaScript
  • Json
  • Lua
  • Markdown
  • Python
  • Rust
  • Toml
  • Typescript / TSX
  • Vim
  • Yaml

About

Collection of Tree Sitter Parsers bundled into a Rust Crate

Resources

License

Stars

Watchers

Forks