Skip to content

Commit 3ab6405

Browse files
Fix a merge issue in funcs.cc
1 parent 5b34420 commit 3ab6405

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gen/funcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ func ccActionFunc(idx int, act *grammar.SemanticAction) string {
577577
// also actions of named non-terminals that happen to be on the same line of the grammar file.
578578
// Replace dashes in nonterminal names with "_dash_" to ensure a valid C++ identifier.
579579
name := strings.ReplaceAll(act.NtName, "-", "_dash_")
580-
return fmt.Sprintf("Action%v__ReduceOf_%v__AtLine_%v_Column_%v", idx, act.NtName, act.Origin.SourceRange().Line, act.Origin.SourceRange().Column)
580+
return fmt.Sprintf("Action%v__ReduceOf_%v__AtLine_%v_Column_%v", idx, name, act.Origin.SourceRange().Line, act.Origin.SourceRange().Column)
581581
}
582582

583583
func bisonParserAction(s string, args *grammar.ActionVars, origin status.SourceNode) (string, error) {

0 commit comments

Comments
 (0)