~ahelwer/tree-sitter-tlaplus

a23bdb79f5d1292e2e795fe0ed63d89b5089ecbc — Patrick Thomson 3 months ago 7455f17
Expose highlights and locals queries in Rust crate. (#102)

* Expose highlights and locals query in Rust crate
* Bump version
3 files changed, 4 insertions(+), 4 deletions(-)

M Cargo.toml
M bindings/rust/lib.rs
M package.json
M Cargo.toml => Cargo.toml +1 -1
@@ 1,7 1,7 @@
[package]
name = "tree-sitter-tlaplus"
description = "A tree-sitter grammar for TLA⁺ and PlusCal"
version = "1.1.0"
version = "1.2.0"
authors = ["Andrew Helwer", "Vasiliy Morkovkin"]
license = "MIT"
readme = "README.md"

M bindings/rust/lib.rs => bindings/rust/lib.rs +2 -2
@@ 37,9 37,9 @@ pub const NODE_TYPES: &str = include_str!("../../src/node-types.json");

// Uncomment these to include any queries that this grammar contains

// pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm");
pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm");
// pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm");
// pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm");
pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm");
// pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");

#[cfg(test)]

M package.json => package.json +1 -1
@@ 1,6 1,6 @@
{
  "name": "@tlaplus/tree-sitter-tlaplus",
  "version": "1.1.0",
  "version": "1.2.0",
  "description": "A tree-sitter grammar for TLA⁺ and PlusCal",
  "main": "bindings/node",
  "types": "bindings/node",