knowledgebase_law/node_modules/.vite/deps/chunk-MQGGF4BM.js

70 lines
1.9 KiB
JavaScript
Raw Normal View History

2025-04-11 23:47:09 +08:00
import {
__commonJS
} from "./chunk-2TUXWMP5.js";
// node_modules/refractor/lang/nginx.js
var require_nginx = __commonJS({
"node_modules/refractor/lang/nginx.js"(exports, module) {
module.exports = nginx;
nginx.displayName = "nginx";
nginx.aliases = [];
function nginx(Prism) {
;
(function(Prism2) {
var variable = /\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;
Prism2.languages.nginx = {
comment: {
pattern: /(^|[\s{};])#.*/,
lookbehind: true,
greedy: true
},
directive: {
pattern: /(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,
lookbehind: true,
greedy: true,
inside: {
string: {
pattern: /((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,
lookbehind: true,
greedy: true,
inside: {
escape: {
pattern: /\\["'\\nrt]/,
alias: "entity"
},
variable
}
},
comment: {
pattern: /(\s)#.*/,
lookbehind: true,
greedy: true
},
keyword: {
pattern: /^\S+/,
greedy: true
},
// other patterns
boolean: {
pattern: /(\s)(?:off|on)(?!\S)/,
lookbehind: true
},
number: {
pattern: /(\s)\d+[a-z]*(?!\S)/i,
lookbehind: true
},
variable
}
},
punctuation: /[{};]/
};
})(Prism);
}
}
});
export {
require_nginx
};
//# sourceMappingURL=chunk-MQGGF4BM.js.map