Last active
October 13, 2015 19:11
-
-
Save RamonPage/733875 to your computer and use it in GitHub Desktop.
TextMate Pattern: Ruby Public, Protected and Private
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name = 'Ruby scope annotation'; | |
scope = 'keyword.other.annotation.ruby'; | |
settings = { background = '#2F5166'; }; | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name = 'keyword.other.annotation.ruby'; | |
comment = 'highlight annotation words'; | |
match = '^.*?\b(private|protected|public)\b$\n'; | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name = 'Ruby scope annotation'; | |
scope = 'keyword.other.annotation.ruby'; | |
settings = { background = '#333333'; }; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bundles > Edit bundles > Ruby > Language Grammars > Ruby
Add the ruby_annotation snippet above into 'patterns' block.
Bundles > Edit bundles > Themes > Themes > [chosen theme]
Add the *_theme snippet above into 'settings' block of the chosen theme.