完成世界书、骰子、apiconfig页面处理
This commit is contained in:
30
frontend/node_modules/refractor/lang/xojo.js
generated
vendored
Normal file
30
frontend/node_modules/refractor/lang/xojo.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
xojo.displayName = 'xojo'
|
||||
xojo.aliases = []
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function xojo(Prism) {
|
||||
Prism.languages.xojo = {
|
||||
comment: {
|
||||
pattern: /(?:'|\/\/|Rem\b).+/i,
|
||||
greedy: true
|
||||
},
|
||||
string: {
|
||||
pattern: /"(?:""|[^"])*"/,
|
||||
greedy: true
|
||||
},
|
||||
number: [/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i, /&[bchou][a-z\d]+/i],
|
||||
directive: {
|
||||
pattern: /#(?:Else|ElseIf|Endif|If|Pragma)\b/i,
|
||||
alias: 'property'
|
||||
},
|
||||
keyword:
|
||||
/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,
|
||||
operator:
|
||||
/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,
|
||||
punctuation: /[.,;:()]/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user