vprimachenko / Sublime-Colorcoder

Semantic highlight for Sublime Text
290 stars 25 forks source link

Ruby Support #20

Closed river-of-code closed 10 years ago

river-of-code commented 10 years ago

create an Ruby (colorcoded).tmLanguage

vprimachenko commented 10 years ago

please unpack Ruby.tmLanguage from \Sublime Text 3\Packages\Ruby.sublime-package to \Sublime Text 3\Data\Packages\Ruby\Ruby.tmLanguage and apply this diff

--- \Sublime Text 3\Data\Packages\Ruby\Ruby.tmLanguage
+++ \Sublime Text 3\Data\Packages\Ruby\Ruby.tmLanguage
@@ -2289,6 +2289,12 @@
            <key>name</key>
            <string>punctuation.section.function.ruby</string>
        </dict>
+       <dict>
+           <key>match</key>
+           <string>\b\w+\b</string>
+           <key>name</key>
+           <string>colorize.ruby</string>
+       </dict>
    </array>
    <key>repository</key>
    <dict>
vprimachenko commented 10 years ago

@the-robear was it any good?

Vivelin commented 10 years ago

It sure got a whole lot more colorful for me with this, at least in ST2.

tpdorsey commented 10 years ago

This worked great, though I extracted the default Ruby.tmLanguage file and the rest of the package contents) using PackageResourceViewer and saved the edited Ruby.tmLanguage file to ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby

Thanks!