mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 07:23:38 +08:00
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/refractor/lang/gedcom.js
|
|
var require_gedcom = __commonJS({
|
|
"node_modules/refractor/lang/gedcom.js"(exports, module) {
|
|
module.exports = gedcom;
|
|
gedcom.displayName = "gedcom";
|
|
gedcom.aliases = [];
|
|
function gedcom(Prism) {
|
|
Prism.languages.gedcom = {
|
|
"line-value": {
|
|
// Preceded by level, optional pointer, and tag
|
|
pattern: /(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,
|
|
lookbehind: true,
|
|
inside: {
|
|
pointer: {
|
|
pattern: /^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,
|
|
alias: "variable"
|
|
}
|
|
}
|
|
},
|
|
tag: {
|
|
// Preceded by level and optional pointer
|
|
pattern: /(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,
|
|
lookbehind: true,
|
|
alias: "string"
|
|
},
|
|
level: {
|
|
pattern: /(^[\t ]*)\d+/m,
|
|
lookbehind: true,
|
|
alias: "number"
|
|
},
|
|
pointer: {
|
|
pattern: /@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,
|
|
alias: "variable"
|
|
}
|
|
};
|
|
}
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_gedcom
|
|
};
|
|
//# sourceMappingURL=chunk-7ZVGHWF4.js.map
|