Permalink
Browse files

Merge branch 'master' of git://github.com/drnic/ruby-tmbundle

  • Loading branch information...
2 parents 29e7ff1 + e1a7a5c commit bb975b7a38fd07bc7fc4f963c473ea7e62618615 @arya arya committed Oct 29, 2008
Showing with 50 additions and 1 deletion.
  1. +3 −1 Commands/Rake:Sake task using file path.tmCommand
  2. +47 −0 Syntaxes/Ruby.plist
@@ -29,6 +29,8 @@ relative_filepath = ENV["TM_FILEPATH"].
gsub(/\.[sr]ake$/, '')
task_name, *reverse_namespaces = relative_filepath.split(/[\/\\]/).reverse
namespaces = reverse_namespaces.reverse
+namespaces = namespaces[1..-1] if namespaces.first == 'lib'
+namespaces = namespaces[1..-1] if namespaces.first == 'tasks'
@indent = 0
namespaces.each do |namespace|
puts "#{indent_str}namespace '#{namespace}' do"
@@ -42,7 +44,7 @@ puts <<-TASK_SNIPPET
#{indent_str}end
TASK_SNIPPET
-reverse_namespaces.each_with_index do |namespace, index|
+namespaces.reverse.each_with_index do |namespace, index|
@indent -= 1
puts "#{indent_str}end"
end</string>
View
@@ -1784,6 +1784,53 @@
</dict>
<dict>
<key>begin</key>
+ <string>(?&gt;&lt;&lt;-OBJC\b)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.ruby</string>
+ </dict>
+ </dict>
+ <key>comment</key>
+ <string>heredoc with embedded Objective-C and indented terminator</string>
+ <key>contentName</key>
+ <string>source.objc.embedded.ruby</string>
+ <key>end</key>
+ <string>\s*OBJC$</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.ruby</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.unquoted.embedded.objective-c.ruby</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#heredoc</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>source.objc</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#interpolated_ruby</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#escaped_char</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
<string>(?&gt;&lt;&lt;-(["\\']?)(\w+_(?i:eval))\1)</string>
<key>beginCaptures</key>
<dict>

0 comments on commit bb975b7

Please sign in to comment.