Skip to content

Instantly share code, notes, and snippets.

@tomlea
Created February 9, 2009 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomlea/60827 to your computer and use it in GitHub Desktop.
Save tomlea/60827 to your computer and use it in GitHub Desktop.
{ scopeName = 'source';
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.trailing-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