Commit a33b9a3c authored by Samuel Giddins's avatar Samuel Giddins

[XCConfigIntegrator] Fix highlighting of regexp

parent ff4535ca
...@@ -146,7 +146,7 @@ module Pod ...@@ -146,7 +146,7 @@ module Pod
SILENCE_WARNINGS_STRING = '// @COCOAPODS_SILENCE_WARNINGS@ //' SILENCE_WARNINGS_STRING = '// @COCOAPODS_SILENCE_WARNINGS@ //'
def self.xcconfig_includes_target_xcconfig?(base_config_ref, target_config_path) def self.xcconfig_includes_target_xcconfig?(base_config_ref, target_config_path)
return unless base_config_ref && base_config_ref.real_path.file? return unless base_config_ref && base_config_ref.real_path.file?
regex = / regex = %r{
^( ^(
(\s* # Possible, but unlikely, space before include statement (\s* # Possible, but unlikely, space before include statement
\#include\s+ # Include statement \#include\s+ # Include statement
...@@ -158,7 +158,7 @@ module Pod ...@@ -158,7 +158,7 @@ module Pod
| |
(#{Regexp.quote(SILENCE_WARNINGS_STRING)}) # Token to treat xcconfig as good and silence pod install warnings (#{Regexp.quote(SILENCE_WARNINGS_STRING)}) # Token to treat xcconfig as good and silence pod install warnings
) )
/x }x
base_config_ref.real_path.readlines.find { |line| line =~ regex } base_config_ref.real_path.readlines.find { |line| line =~ regex }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment