Skip to content

Commit

Permalink
Updated grammar to v0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Sep 15, 2024
1 parent 33f7e64 commit 08077f3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
24 changes: 16 additions & 8 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ encoding_rs_io = "0.1"

[dependencies.tree-sitter-witcherscript]
git = "https://github.com/SpontanCombust/tree-sitter-witcherscript.git"
tag = "v0.12.0"
tag = "v0.13.0"
2 changes: 1 addition & 1 deletion crates/core/src/ast/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl SyntaxNodeTraversal for FunctionDefinitionNode<'_> {
pub type FunctionBlockNode<'script> = SyntaxNode<'script, tags::FunctionBlock>;

impl NamedSyntaxNode for FunctionBlockNode<'_> {
const NODE_KIND: &'static str = "func_def";
const NODE_KIND: &'static str = "func_block";
}

impl<'script> FunctionBlockNode<'script> {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/ast/misc_stmts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl SyntaxNodeTraversal for DeleteStatementNode<'_> {
pub type CompoundStatementNode<'script> = SyntaxNode<'script, tags::CompoundStatement>;

impl NamedSyntaxNode for CompoundStatementNode<'_> {
const NODE_KIND: &'static str = "compound_stmt";
const NODE_KIND: &'static str = "func_block";
}

impl<'script> CompoundStatementNode<'script> {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/ast/states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl SyntaxNodeTraversal for StateDeclarationNode<'_> {
pub type StateBlockNode<'script> = SyntaxNode<'script, tags::StateBlock>;

impl NamedSyntaxNode for StateBlockNode<'_> {
const NODE_KIND: &'static str = "state_def";
const NODE_KIND: &'static str = "class_def";
}

impl<'script> StateBlockNode<'script> {
Expand Down

0 comments on commit 08077f3

Please sign in to comment.