react-native-shiki-engine
Version:
Shiki syntax highlighting for React Native. Zero bridge overhead with native Oniguruma regex engine.
18 lines (17 loc) • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertToOnigMatch = convertToOnigMatch;
function convertToOnigMatch(result) {
if (!result) return null;
return {
index: result.index,
captureIndices: result.captureIndices.map(capture => ({
start: capture.start,
end: capture.end,
length: capture.length
}))
};
}
//# sourceMappingURL=utils.js.map