Skip to content

Commit

Permalink
Merge pull request #9 from arkadyan/master
Browse files Browse the repository at this point in the history
Only highlight trailing whitespace if it is preceded by...
  • Loading branch information
mads-hartmann committed Apr 20, 2012
2 parents 84ba447 + ac6082c commit d0ebd42
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Syntaxes/Trailing Whitespace.tmLanguage
Expand Up @@ -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>
Expand Down

0 comments on commit d0ebd42

Please sign in to comment.