mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 05:58:15 +08:00
64 lines
2.0 KiB
JavaScript
64 lines
2.0 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/brightscript.js
|
||
|
var require_brightscript = __commonJS({
|
||
|
"node_modules/refractor/lang/brightscript.js"(exports, module) {
|
||
|
module.exports = brightscript;
|
||
|
brightscript.displayName = "brightscript";
|
||
|
brightscript.aliases = [];
|
||
|
function brightscript(Prism) {
|
||
|
Prism.languages.brightscript = {
|
||
|
comment: /(?:\brem|').*/i,
|
||
|
"directive-statement": {
|
||
|
pattern: /(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,
|
||
|
lookbehind: true,
|
||
|
alias: "property",
|
||
|
inside: {
|
||
|
"error-message": {
|
||
|
pattern: /(^#error).+/,
|
||
|
lookbehind: true
|
||
|
},
|
||
|
directive: {
|
||
|
pattern: /^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,
|
||
|
alias: "keyword"
|
||
|
},
|
||
|
expression: {
|
||
|
pattern: /[\s\S]+/,
|
||
|
inside: null
|
||
|
// see below
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
property: {
|
||
|
pattern: /([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,
|
||
|
lookbehind: true,
|
||
|
greedy: true
|
||
|
},
|
||
|
string: {
|
||
|
pattern: /"(?:[^"\r\n]|"")*"(?!")/,
|
||
|
greedy: true
|
||
|
},
|
||
|
"class-name": {
|
||
|
pattern: /(\bAs[\t ]+)\w+/i,
|
||
|
lookbehind: true
|
||
|
},
|
||
|
keyword: /\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,
|
||
|
boolean: /\b(?:false|true)\b/i,
|
||
|
function: /\b(?!\d)\w+(?=[\t ]*\()/,
|
||
|
number: /(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,
|
||
|
operator: /--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,
|
||
|
punctuation: /[.,;()[\]{}]/,
|
||
|
constant: /\b(?:LINE_NUM)\b/i
|
||
|
};
|
||
|
Prism.languages.brightscript["directive-statement"].inside.expression.inside = Prism.languages.brightscript;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_brightscript
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-YHQJB3U5.js.map
|