Skip to content

Instantly share code, notes, and snippets.

@RamonPage
Last active October 13, 2015 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RamonPage/733875 to your computer and use it in GitHub Desktop.
Save RamonPage/733875 to your computer and use it in GitHub Desktop.
TextMate Pattern: Ruby Public, Protected and Private
{
name = 'Ruby scope annotation';
scope = 'keyword.other.annotation.ruby';
settings = { background = '#2F5166'; };
},
{
name = 'keyword.other.annotation.ruby';
comment = 'highlight annotation words';
match = '^.*?\b(private|protected|public)\b$\n';
},
{
name = 'Ruby scope annotation';
scope = 'keyword.other.annotation.ruby';
settings = { background = '#333333'; };
},
@RamonPage
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment