tree-sitter-json5 0.1.0

json5 grammar for the tree-sitter parsing library
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 105.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 314.49 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Joakker

This crate provides json5 language support for the tree-sitter parsing library.

Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_json5::language()).expect("Error loading json5 grammar");
let tree = parser.parse(code, None).unwrap();