mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 15:40:02 +00:00
22 lines
458 B
JavaScript
22 lines
458 B
JavaScript
|
import MarkJS from './lib/mark';
|
||
|
|
||
|
export default function Mark(ctx) {
|
||
|
const instance = new MarkJS(ctx);
|
||
|
this.mark = (sv, opt) => {
|
||
|
instance.mark(sv, opt);
|
||
|
return this;
|
||
|
};
|
||
|
this.markRegExp = (sv, opt) => {
|
||
|
instance.markRegExp(sv, opt);
|
||
|
return this;
|
||
|
};
|
||
|
this.markRanges = (sv, opt) => {
|
||
|
instance.markRanges(sv, opt);
|
||
|
return this;
|
||
|
};
|
||
|
this.unmark = (opt) => {
|
||
|
instance.unmark(opt);
|
||
|
return this;
|
||
|
};
|
||
|
return this;
|
||
|
}
|