Skip to content

Commit

Permalink
Reformat method prototypes to respect TM_C_POINTER if available
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Objective-C.tmbundle@10937 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
ciaran committed Dec 2, 2008
1 parent 7f8896f commit 5758fb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Commands/Paste Implementation : Interface.tmCommand
Expand Up @@ -34,7 +34,9 @@ methods = []
(?=\s* ;?) # Optional semicolon
/ix) { methods << $&.strip }
/ix) do
methods << $&.strip.gsub(' *)', (ENV['TM_C_POINTER'] || ' *').rstrip + ')')
end
if ENV['TM_SCOPE'] =~ /meta.scope.interface.objc/
methods.each { |e| puts "#{e};" }
Expand Down

0 comments on commit 5758fb0

Please sign in to comment.