mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-05 02:37:50 +00:00
Fix format of latest regex.
This commit is contained in:
@@ -330,7 +330,7 @@ class CMockHeaderParser
|
||||
source.gsub!(/(^|\W+)(?:#{@c_strippables.join('|')})(?=$|\W+)/, '\1') unless @c_strippables.empty? # remove known attributes slated to be stripped
|
||||
|
||||
# scan standalone function pointers and remove them, because they can just be ignored
|
||||
source.gsub!(/[\w][\w\s*]*\(\s*\*\s*\w+\s*\)\s*\([^)]*\)\s*;/, ';')
|
||||
source.gsub!(/\w[\w\s*]*\(\s*\*\s*\w+\s*\)\s*\([^)]*\)\s*;/, ';')
|
||||
|
||||
# scan for functions which return function pointers, because they are a pain
|
||||
source.gsub!(/([\w\s*]+)\(*\(\s*\*([\w\s*]+)\s*\(([\w\s*,]*)\)\)\s*\(([\w\s*,]*)\)\)*/) do |_m|
|
||||
|
||||
Reference in New Issue
Block a user