Skip to content

Commit

Permalink
Enclose in parentheses where you assign in the if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed May 4, 2024
1 parent 231a49a commit b0241ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/grammar/rule_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def lhs_s_value(token, bindings)

def resolve_inline(parameterizing_rule_resolver)
rhs.each_with_index do |token, i|
if inline_rule = parameterizing_rule_resolver.find_inline(token)
if (inline_rule = parameterizing_rule_resolver.find_inline(token))
inline_rule.rhs_list.each_with_index do |inline_rhs|
rule_builder = RuleBuilder.new(@rule_counter, @midrule_action_counter, lhs_tag: lhs_tag, skip_preprocess_references: true)
resolve_inline_rhs(rule_builder, inline_rhs, i)
Expand Down

0 comments on commit b0241ee

Please sign in to comment.