Skip to content

Commit

Permalink
Merge pull request #22 from ace-design/fixes
Browse files Browse the repository at this point in the history
Fix rules.
  • Loading branch information
AlexandreLachanceGit authored Nov 6, 2023
2 parents a91b368 + 28137d4 commit 6c168de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ls_framework/src/metadata/ast/rules_translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ impl RulesTranslator {
// }

for child in current_rule.children.iter() {
self.query_parse_child(&children, child, current_node_id, current_ts_node);
self.query_parse_child(&children, child, current_node_id);
}

for child in &LanguageDefinition::get().global_ast_rules {
self.query_parse_child(&children, &child, current_node_id, current_ts_node);
self.query_parse_child(&children, child, current_node_id);
}

current_node_id
Expand All @@ -69,7 +69,6 @@ impl RulesTranslator {
children: &[tree_sitter::Node],
child: &Child,
current_node_id: NodeId,
current_ts_node: &tree_sitter::Node,
) {
let (query, node_or_rule) = (&child.query, &child.rule);

Expand Down
2 changes: 1 addition & 1 deletion p4_lsf/language_def/rules.ron
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ LanguageDefinition (
Rule(
node_name: "Transition",
children: [
(query: Kind("select_expression"), rule: Rule("Select")),EnumMember
(query: Kind("select_expression"), rule: Rule("Select")),
]
),
Rule(
Expand Down

0 comments on commit 6c168de

Please sign in to comment.