Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from arkadyan/master

Only highlight trailing whitespace if it is preceded by...
  • Loading branch information...
commit d0ebd42582044e6aed0146523a104054fb69dd81 2 parents 84ba447 + ac6082c
Mads Hartmann Jensen authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 Syntaxes/Trailing Whitespace.tmLanguage
12 Syntaxes/Trailing Whitespace.tmLanguage
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.