mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 18:40:09 +00:00
tweaks + docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
27a9ec0e47
commit
2f066a8e8e
7
diff.js
7
diff.js
@ -32,6 +32,11 @@ var MIN_TEXT_LENGTH = 100
|
|||||||
// - revise name -- this contains two parts:
|
// - revise name -- this contains two parts:
|
||||||
// 1. diff / patch and friends
|
// 1. diff / patch and friends
|
||||||
// 2. cmp and patterns
|
// 2. cmp and patterns
|
||||||
|
// open candidates:
|
||||||
|
// ig-diff
|
||||||
|
// cdiff
|
||||||
|
// pattern diff
|
||||||
|
//
|
||||||
// we need the name to be short and descriptive, possible
|
// we need the name to be short and descriptive, possible
|
||||||
// candidates:
|
// candidates:
|
||||||
// - objdiff / object-diff
|
// - objdiff / object-diff
|
||||||
@ -39,6 +44,8 @@ var MIN_TEXT_LENGTH = 100
|
|||||||
// - compare
|
// - compare
|
||||||
// - revise docs...
|
// - revise docs...
|
||||||
// ...should be simpler to enter, maybe example-oriented intro
|
// ...should be simpler to enter, maybe example-oriented intro
|
||||||
|
// - diff visualization -- for example see:
|
||||||
|
// https://www.npmjs.com/package/jsondiffpatch
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
*
|
*
|
||||||
|
* This module describes the diff format and provides basic verification.
|
||||||
|
*
|
||||||
|
* XXX EXPERIMENTAL...
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
@ -31,6 +34,7 @@ var {
|
|||||||
|
|
||||||
var VALUE =
|
var VALUE =
|
||||||
module.VALUE = OR(
|
module.VALUE = OR(
|
||||||
|
// XXX use these taken from .placeholders...
|
||||||
EMPTY,
|
EMPTY,
|
||||||
NONE,
|
NONE,
|
||||||
ANY)
|
ANY)
|
||||||
@ -161,7 +165,7 @@ module.DIFF_OBJECT = AND(
|
|||||||
AT('diff', DIFF_FLAT)),
|
AT('diff', DIFF_FLAT)),
|
||||||
AND(
|
AND(
|
||||||
AT('structure', 'tree'),
|
AT('structure', 'tree'),
|
||||||
AT('diff', DIFF_TREE))) )
|
AT('diff', DIFF_TREE))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user