Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/hoe/dev/": change = 13951]
  • Loading branch information
zenspider committed Nov 1, 2023
1 parent 1985d3d commit 7eb9ccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hoe/racc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def activate_racc_deps
# Define tasks for racc plugin

def define_racc_tasks
racc_files = self.spec.files.find_all { |f| f =~ /\.y$/ }
rex_files = self.spec.files.find_all { |f| f =~ /\.rex$/ }
racc_files = self.spec.files.grep(/\.y$/)
rex_files = self.spec.files.grep(/\.rex$/)

parser_files = racc_files.map { |f| f.sub(/\.y$/, ".rb") }
lexer_files = rex_files.map { |f| f.sub(/\.rex$/, ".rex.rb") }
Expand Down Expand Up @@ -100,5 +100,5 @@ def define_racc_tasks
racc_tasks.each do |t|
task t => [:parser, :lexer]
end
end
end # define_racc_tasks
end

0 comments on commit 7eb9ccd

Please sign in to comment.