<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>beforeRunningCommand</key>
	<string>nop</string>
	<key>command</key>
	<string>#!/usr/bin/env ruby -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/escape'

line = ENV['TM_LINE_NUMBER'].to_i - 1
array = STDIN.to_a[0...line].reverse

if array.find { |l| l =~ /@interface\s+(\w+)/ }
  print "OBJC_WATCH_LEAKS(#{e_sn $1});"
else
  print "OBJC_WATCH_LEAKS($1);"
end
</string>
	<key>fallbackInput</key>
	<string>scope</string>
	<key>input</key>
	<string>document</string>
	<key>name</key>
	<string>OBJC_WATCH_LEAKS(…);</string>
	<key>output</key>
	<string>insertAsSnippet</string>
	<key>scope</key>
	<string>source.objc++ meta.interface-or-protocol.objc meta.block.c</string>
	<key>tabTrigger</key>
	<string>W</string>
	<key>uuid</key>
	<string>5B90AF99-1971-4121-84A8-866BA048473B</string>
</dict>
</plist>
