mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 22:08:16 +08:00
71 lines
1.8 KiB
JavaScript
71 lines
1.8 KiB
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/highlight.js/lib/languages/inform7.js
|
|
var require_inform7 = __commonJS({
|
|
"node_modules/highlight.js/lib/languages/inform7.js"(exports, module) {
|
|
function inform7(hljs) {
|
|
const START_BRACKET = "\\[";
|
|
const END_BRACKET = "\\]";
|
|
return {
|
|
name: "Inform 7",
|
|
aliases: ["i7"],
|
|
case_insensitive: true,
|
|
keywords: {
|
|
// Some keywords more or less unique to I7, for relevance.
|
|
keyword: (
|
|
// kind:
|
|
"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"
|
|
)
|
|
},
|
|
contains: [
|
|
{
|
|
className: "string",
|
|
begin: '"',
|
|
end: '"',
|
|
relevance: 0,
|
|
contains: [
|
|
{
|
|
className: "subst",
|
|
begin: START_BRACKET,
|
|
end: END_BRACKET
|
|
}
|
|
]
|
|
},
|
|
{
|
|
className: "section",
|
|
begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/,
|
|
end: "$"
|
|
},
|
|
{
|
|
// Rule definition
|
|
// This is here for relevance.
|
|
begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,
|
|
end: ":",
|
|
contains: [
|
|
{
|
|
// Rule name
|
|
begin: "\\(This",
|
|
end: "\\)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
className: "comment",
|
|
begin: START_BRACKET,
|
|
end: END_BRACKET,
|
|
contains: ["self"]
|
|
}
|
|
]
|
|
};
|
|
}
|
|
module.exports = inform7;
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_inform7
|
|
};
|
|
//# sourceMappingURL=chunk-3P3SDP2S.js.map
|