-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Commit of tree-sitter-scala you tested this on
v0.21.0
A code sample showing the error
I'm using tree sitter with rust and I noticed that the DEBUG logging is enabled
use tree_sitter::Parser;
use tree_sitter_scala;
use tree_sitter_typescript;
fn main() {
let mut parser = Parser::new();
parser
.set_language(&tree_sitter_scala::language())
.expect("Error loading Rust grammar");
let source_code = "val a = 1L";
let tree = parser.parse(source_code, None).unwrap();
let root_node = tree.root_node();
println!("{}", root_node.to_sexp());
}
Show the error node
before Stack[top = 0; ]
after Stack[top = 0; ]
before Stack[top = 0; ]
after Stack[top = 0; ]
before Stack[top = 0; ]
after Stack[top = 0; ]
before Stack[top = 0; ]
after Stack[top = 0; ]
(compilation_unit (val_definition pattern: (identifier) value: (integer_literal)))
What do you expect the tree to look like
(compilation_unit (val_definition pattern: (identifier) value: (integer_literal)))
Where are you experiencing this error?
Rust project
Metadata
Metadata
Assignees
Labels
No labels