完成世界书、骰子、apiconfig页面处理
This commit is contained in:
35
frontend/node_modules/refractor/lang/linker-script.js
generated
vendored
Normal file
35
frontend/node_modules/refractor/lang/linker-script.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
linkerScript.displayName = 'linker-script'
|
||||
linkerScript.aliases = ['ld']
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function linkerScript(Prism) {
|
||||
Prism.languages['linker-script'] = {
|
||||
comment: {
|
||||
pattern: /(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,
|
||||
lookbehind: true,
|
||||
greedy: true
|
||||
},
|
||||
identifier: {
|
||||
pattern: /"[^"\r\n]*"/,
|
||||
greedy: true
|
||||
},
|
||||
'location-counter': {
|
||||
pattern: /\B\.\B/,
|
||||
alias: 'important'
|
||||
},
|
||||
section: {
|
||||
pattern: /(^|[^\w*])\.\w+\b/,
|
||||
lookbehind: true,
|
||||
alias: 'keyword'
|
||||
},
|
||||
function: /\b[A-Z][A-Z_]*(?=\s*\()/,
|
||||
number: /\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,
|
||||
operator: />>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,
|
||||
punctuation: /[(){},;]/
|
||||
}
|
||||
Prism.languages['ld'] = Prism.languages['linker-script']
|
||||
}
|
||||
Reference in New Issue
Block a user