Permalink
Browse files

Color any other lines starting with +/- as changes

  • Loading branch information...
1 parent dca3ee0 commit a971dff9d10b668c14bbb47611d243686b7ffd2d @rwstauner rwstauner committed Sep 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/shBrushDiff.js
View
@@ -10,8 +10,8 @@
{ regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file
{ regex: /^\s.*$/gm, css: 'color1' },
{ regex: /^@@.*@@.*$/gm, css: 'variable' }, // location
- { regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
- { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
+ { regex: /^\+.*$/gm, css: 'string' }, // additions
+ { regex: /^\-.*$/gm, css: 'comments' } // deletions
];
};

0 comments on commit a971dff

Please sign in to comment.