├── info.plist ├── Syntaxes ├── Mixed Whitespace.tmLanguage └── Trailing Whitespace.tmLanguage └── README.md /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | contactEmailRot13 6 | znqf379@tznvy.pbz 7 | contactName 8 | Mads Hartmann Jensen 9 | description 10 | Bundle with everything related to whitespace. 11 | name 12 | Whitespace 13 | uuid 14 | 93DEE3EE-5965-43DA-B92B-E37BE0167EBD 15 | 16 | 17 | -------------------------------------------------------------------------------- /Syntaxes/Mixed Whitespace.tmLanguage: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | fileTypes 6 | 7 | injectionSelector 8 | * 9 | name 10 | Mixed Whitespace 11 | patterns 12 | 13 | 14 | match 15 | ([^\S\n\f\r])\1*(?!\1)[^\S\n\f\r]+ 16 | name 17 | invalid.illegal.whitespace.mixed 18 | 19 | 20 | uuid 21 | 0B249F99-FC38-49F4-AA15-3B7DFF9F8DFA 22 | 23 | 24 | -------------------------------------------------------------------------------- /Syntaxes/Trailing Whitespace.tmLanguage: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | fileTypes 6 | 7 | injectionSelector 8 | -source.diff 9 | name 10 | Trailing Whitespace 11 | patterns 12 | 13 | 14 | captures 15 | 16 | 3 17 | 18 | name 19 | invalid.illegal.whitespace.trailing 20 | 21 | 22 | match 23 | ((\S)([^\S\n\f\r]+)$) 24 | 25 | 26 | uuid 27 | D65149ED-CC2B-4393-9084-2DA7C1B7B12B 28 | 29 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | TextMate bundle for whitespace 2 | ============================== 3 | 4 | So far it has two grammars it injects into all other scopes. It adds the scopes invalid.illegal.whitespace.trailing to all trailing whitespace and invalid.illegal.whitespace.mixed to all occurrences of mixed spaces/tabs. This means you can spot all your whitespace hiccups before Git does. More information [here](http://mads379.github.com/posts/whitespace-tmbundle "here"). 5 | 6 | **Author**: Mads Hartmann Jensen 7 | 8 | Install 9 | ------- 10 | 11 | If you have git, you can install cloning the repository to your user library folder: 12 | 13 | mkdir -p ~/Library/Application\ Support/Avian/Bundles 14 | cd ~/Library/Application\ Support/Avian/Bundles 15 | git clone https://github.com/mads379/Whitespace.tmbundle.git 16 | 17 | If you don't have git, you can download it (using the zip button in the bar), extract the zipfile and copy the extracted folder to `~/Library/Application Support/Avian/Bundles`. 18 | --------------------------------------------------------------------------------