完成世界书、骰子、apiconfig页面处理
This commit is contained in:
26
frontend/node_modules/refractor/lang/jexl.js
generated
vendored
Normal file
26
frontend/node_modules/refractor/lang/jexl.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
jexl.displayName = 'jexl'
|
||||
jexl.aliases = []
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function jexl(Prism) {
|
||||
Prism.languages.jexl = {
|
||||
string: /(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
|
||||
transform: {
|
||||
pattern:
|
||||
/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,
|
||||
alias: 'function',
|
||||
lookbehind: true
|
||||
},
|
||||
function:
|
||||
/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,
|
||||
number: /\b\d+(?:\.\d+)?\b|\B\.\d+\b/,
|
||||
operator: /[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,
|
||||
boolean: /\b(?:false|true)\b/,
|
||||
keyword: /\bin\b/,
|
||||
punctuation: /[{}[\](),.]/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user