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

Homebrew-formula-syntax

by samueljohn ALL

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

Details

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

Installs

  • Total 2K
  • Win 560
  • Mac 2K
  • Linux 154
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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.