Skip to content

Commit

Permalink
Move to the end of prologue
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Oct 6, 2023
1 parent 04e1798 commit 44a37bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lrama/new_parser.rb

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

2 changes: 1 addition & 1 deletion parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ end

def prologue(s_value)
if @header_path && !s_value.match?(/^\s*#include\s+"#{@header_path}"/)
"\n#include \"#{@header_path}\"\n" + s_value
s_value + "\n#include \"#{@header_path}\"\n"
else
s_value
end
Expand Down

0 comments on commit 44a37bf

Please sign in to comment.