Sublime Text Syntax for Homebrew formulae (supporting the embedded diff)
Switch branches/tags
Nothing to show
Clone or download
Latest commit bd9aaf4 Oct 18, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Syntaxes Shorter short name for this syntax Oct 18, 2013
.gitignore Added .gitignore because of .cache files May 31, 2013
README.md README Oct 18, 2013
screenshot.png Added screenshot May 30, 2013

README.md

Homebrew-formula-syntax

Sublime Text 2 and 3 Syntax for Homebrew formulae (supporting the embedded diff)

Homebrew (http://brew.sh) formulae support inlined diffs after an __END__ keyword. Now, this Syntax desccription you see here, named "Homebrew Formula.tmLanguage", merges source.ruby with source.diff and if you have a decent color theme that knows how to highlight diffs, it will make Homebrew formulae more beautiful.

Ruby (.rb) files beginning with require 'formula' are automatically detected.

This tmLanguange here is simple enough - I wrote it directly in xml.

Screenshot

Note

  • Updates to either source.ruby or source.diff are automatically used by this Syntax, too, because they are just included.
  • I copy/pasted (start|stop)foldingStopMarker from Ruby.tmLanguage.

Todo

  • Nothing. Do you have an idea? Let me know!

Author

License:

Public Domain. I don't care. Have fun.