Skip to content

Commit

Permalink
Merge pull request #125 from Jellyfrog/feature/bindings-rust
Browse files Browse the repository at this point in the history
Update bindings for rust to include HIGHLIGHT_QUERY
  • Loading branch information
aryx committed Mar 23, 2022
2 parents 0ce1342 + 7a3ca99 commit ead3e4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- run: npm install
- run: npm test
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "tree-sitter-php"
description = "php grammar for the tree-sitter parsing library"
version = "0.19.0"
version = "0.19.1"
keywords = ["incremental", "parsing", "php"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-javascript"
repository = "https://github.com/tree-sitter/tree-sitter-php"
edition = "2018"

build = "bindings/rust/build.rs"
Expand All @@ -19,7 +19,7 @@ include = [
path = "bindings/rust/lib.rs"

[dependencies]
tree-sitter = "0.19"
tree-sitter = ">= 0.19, < 0.21"

[build-dependencies]
cc = "1.0"
2 changes: 1 addition & 1 deletion bindings/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json");

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

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

0 comments on commit ead3e4c

Please sign in to comment.