ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Homebrew-formula-syntax

by samueljohn ST2/ST3

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

Details

  • 2013.10.18.10.36.47
  • github.​com
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 2K
  • Win 383
  • OS X 1K
  • Linux 91
May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8
Windows 0 0 0 0 1 0 0 0 3 0 0 0 1 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 2 0 0 0 0 1 0 1 0 0 0 0
OS X 0 1 2 2 0 0 1 2 0 1 0 0 1 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 0 2 1 0 0 0 0 0 1 0 0 1 1 1
Linux 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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.