Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Only highlight trailing whitespace if it is preceded by... #9

Merged
merged 1 commit into from

2 participants

@arkadyan

... a non-whitespace character.

Fixes #7

@mads379 mads379 merged commit d0ebd42 into from
@mads379
Owner

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 19, 2012
  1. @arkadyan
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 3 deletions.
  1. +9 −3 Syntaxes/Trailing Whitespace.tmLanguage
View
12 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>
Something went wrong with that request. Please try again.