Created
February 9, 2009 15:39
-
-
Save tomlea/60830 to your computer and use it in GitHub Desktop.
TextMate whitespace error highlighting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { scopeName = 'source'; | |
| comment = ' | |
| You will need to add a { include = "source"; } within the patterns = (...) segment of each of your languages. | |
| Eugh! | |
| '; | |
| patterns = ( | |
| { name = 'source.invalid.trailing-whitespace'; | |
| match = '\S(\s{1,})$'; | |
| captures = { 1 = { name = 'invalid.trailing-whitespace'; }; }; | |
| }, | |
| { name = 'source.invalid.just-whitespace'; | |
| match = '^(\s{1,})$'; | |
| captures = { 1 = { name = 'invalid.just-whitespace'; }; }; | |
| }, | |
| { name = 'source.invalid.new-line-missing-at-end-of-file'; | |
| match = '^.{1,}\z'; | |
| captures = { 0 = { name = 'invalid.new-line-missing-at-end-of-file'; }; }; | |
| }, | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment