You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
"use strict";
|
|
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[9116],{
|
|
|
|
/***/ 39116:
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ diff: () => (/* binding */ diff)
|
|
/* harmony export */ });
|
|
var TOKEN_NAMES = {
|
|
'+': 'inserted',
|
|
'-': 'deleted',
|
|
'@': 'meta'
|
|
};
|
|
|
|
const diff = {
|
|
name: "diff",
|
|
token: function(stream) {
|
|
var tw_pos = stream.string.search(/[\t ]+?$/);
|
|
|
|
if (!stream.sol() || tw_pos === 0) {
|
|
stream.skipToEnd();
|
|
return ("error " + (
|
|
TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
|
|
}
|
|
|
|
var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
|
|
|
|
if (tw_pos === -1) {
|
|
stream.skipToEnd();
|
|
} else {
|
|
stream.pos = tw_pos;
|
|
}
|
|
|
|
return token_name;
|
|
}
|
|
};
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
}]);
|
|
//# sourceMappingURL=9116.3fe5c69fba4a31452403.js.map?v=3fe5c69fba4a31452403
|