From e4b27377ec9dd25a6e781f7baf7234a96dcb4adb Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 2 Nov 2023 14:41:12 +0100 Subject: [PATCH 1/2] fix: remove warning when compiling --- tree-sitter-uvl/src/scanner.cc | 2 +- uvls/src/core/ast/graph.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tree-sitter-uvl/src/scanner.cc b/tree-sitter-uvl/src/scanner.cc index 1c8ad170..db5a1748 100644 --- a/tree-sitter-uvl/src/scanner.cc +++ b/tree-sitter-uvl/src/scanner.cc @@ -59,7 +59,7 @@ struct Scanner { int32_t first_comment_indent_lenght = -1; lexer->mark_end(lexer); auto skip = [&]() { lexer->advance(lexer, false); }; - auto advance = [&]() { lexer->advance(lexer, true); }; + // auto advance = [&]() { lexer->advance(lexer, true); }; bool scan_ident = 1, eof = 0; // std::cout<<"scanning:"; diff --git a/uvls/src/core/ast/graph.rs b/uvls/src/core/ast/graph.rs index b48f4809..c6120a92 100644 --- a/uvls/src/core/ast/graph.rs +++ b/uvls/src/core/ast/graph.rs @@ -600,7 +600,7 @@ fn visit_ref(graph: &mut VisitorGraph, _: &mut GraphNode, _: Path) { } } } -fn visit_group(graph: &mut VisitorGraph, mut parent: &mut GraphNode, mode: GroupMode) { +fn visit_group(graph: &mut VisitorGraph, parent: &mut GraphNode, mode: GroupMode) { //let sym = Symbol::Group(graph.ast.groups.len()); //graph.push_child(parent, sym); parent.group_mode = Some(mode); From 0a32cbf678ef3e8332489c8348b07f50eff7ce55 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 6 Dec 2023 10:43:32 +0100 Subject: [PATCH 2/2] feat: remove comment --- tree-sitter-uvl/src/scanner.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/tree-sitter-uvl/src/scanner.cc b/tree-sitter-uvl/src/scanner.cc index db5a1748..0cf48546 100644 --- a/tree-sitter-uvl/src/scanner.cc +++ b/tree-sitter-uvl/src/scanner.cc @@ -59,7 +59,6 @@ struct Scanner { int32_t first_comment_indent_lenght = -1; lexer->mark_end(lexer); auto skip = [&]() { lexer->advance(lexer, false); }; - // auto advance = [&]() { lexer->advance(lexer, true); }; bool scan_ident = 1, eof = 0; // std::cout<<"scanning:";