1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Call out to patch/syntax when processing a diff.

This commit is contained in:
Rob Rix 2015-10-21 11:59:48 -04:00
parent f5380548e2
commit 61eff92eff

View File

@ -75,6 +75,11 @@
if (json instanceof Array) { return indexed(json); } if (json instanceof Array) { return indexed(json); }
if (json instanceof Object) { return keyed(json); } if (json instanceof Object) { return keyed(json); }
} }
function diff(json) {
if (json["pure"] != null) { return patch(json["pure"]); }
if (json["roll"] != null) { return syntax(json["roll"]); }
}
</script> </script>
</head> </head>
<body> <body>