Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed May 8, 2024
1 parent 8e414f4 commit 24c825a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 37 deletions.
65 changes: 31 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ bigdecimal = { version ="0.4.0", features = ["serde"] }
serde = { version = "1.0.111", features = ["derive"] }

# Parsers
tree-sitter = "0.20.5"
tree-sitter-cql = "0.1.1"
tree-sitter = "0.22.6"
# tree-sitter-cql = "0.1.1"
tree-sitter-cql = { git = "https://github.com/conorbros/tree-sitter-cql" }

[dev-dependencies]

2 changes: 1 addition & 1 deletion src/cassandra_ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ impl CassandraAST {
pub fn new(cassandra_statement: &str) -> CassandraAST {
let language = tree_sitter_cql::language();
let mut parser = tree_sitter::Parser::new();
if parser.set_language(language).is_err() {
if parser.set_language(&language).is_err() {
panic!("language version mismatch");
}

Expand Down

0 comments on commit 24c825a

Please sign in to comment.