Permalink
Browse files

Use space to make file marker match more specific

  • Loading branch information...
1 parent 7dca07f commit dca3ee06a05b0201b423594f3ec98db8d6c1d08e @rwstauner rwstauner committed Sep 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/shBrushDiff.js
View
@@ -6,8 +6,8 @@
function Brush()
{
this.regexList = [
- { regex: /^\+\+\+.*$/gm, css: 'color2' },
- { regex: /^\-\-\-.*$/gm, css: 'color2' },
+ { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file
+ { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file
{ regex: /^\s.*$/gm, css: 'color1' },
{ regex: /^@@.*@@.*$/gm, css: 'variable' }, // location
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },

0 comments on commit dca3ee0

Please sign in to comment.