changeset in labs/bespinclient: Parse diffs with ">" characters ...

0 views
Skip to first unread message

Patrick Walton

unread,
Sep 13, 2010, 7:18:49 PM9/13/10
to bespin-...@googlegroups.com
changeset 7bb44434179e in /repo/hg/mozilla/labs/bespinclient
details: http://hg.mozilla.org/labs/bespinclient?cmd=changeset;node=7bb44434179e
description:
Parse diffs with ">" characters prepended, which are used in Mozilla code reviews

diffstat:

plugins/supported/diff_syntax.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/plugins/supported/diff_syntax.js b/plugins/supported/diff_syntax.js
--- a/plugins/supported/diff_syntax.js
+++ b/plugins/supported/diff_syntax.js
@@ -55,8 +55,8 @@ var StandardSyntax = require('standard_s

var states = {
start: [
- { regex: /^\+.*/, tag: 'addition' },
- { regex: /^-.*/, tag: 'deletion' },
+ { regex: /^>?\s*\+.*/, tag: 'addition' },
+ { regex: /^>?\s*-.*/, tag: 'deletion' },
{ regex: /^.*/, tag: 'plain' }
]
};

Reply all
Reply to author
Forward
0 new messages