Skip to content

Commit 125fcde

Browse files
committed
Fix format of latest regex.
1 parent 1724a4d commit 125fcde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cmock_header_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def import_source(source, parse_project, cpp = false)
330330
source.gsub!(/(^|\W+)(?:#{@c_strippables.join('|')})(?=$|\W+)/, '\1') unless @c_strippables.empty? # remove known attributes slated to be stripped
331331

332332
# scan standalone function pointers and remove them, because they can just be ignored
333-
source.gsub!(/[\w][\w\s*]*\(\s*\*\s*\w+\s*\)\s*\([^)]*\)\s*;/, ';')
333+
source.gsub!(/\w[\w\s*]*\(\s*\*\s*\w+\s*\)\s*\([^)]*\)\s*;/, ';')
334334

335335
# scan for functions which return function pointers, because they are a pain
336336
source.gsub!(/([\w\s*]+)\(*\(\s*\*([\w\s*]+)\s*\(([\w\s*,]*)\)\)\s*\(([\w\s*,]*)\)\)*/) do |_m|

0 commit comments

Comments
 (0)