Permalink
Browse files

Merge pull request #9 from arkadyan/master

Only highlight trailing whitespace if it is preceded by...
  • Loading branch information...
2 parents 84ba447 + ac6082c commit d0ebd42582044e6aed0146523a104054fb69dd81 @mads-hartmann committed Apr 20, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 Syntaxes/Trailing Whitespace.tmLanguage
@@ -11,10 +11,16 @@
<key>patterns</key>
<array>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>invalid.illegal.whitespace.trailing</string>
+ </dict>
+ </dict>
<key>match</key>
- <string>([^\S\n\f\r]+)$</string>
- <key>name</key>
- <string>invalid.illegal.whitespace.trailing</string>
+ <string>((\S)([^\S\n\f\r]+)$)</string>
</dict>
</array>
<key>uuid</key>

0 comments on commit d0ebd42

Please sign in to comment.