完成世界书、骰子、apiconfig页面处理
This commit is contained in:
20
frontend/node_modules/refractor/lang/cilkcpp.js
generated
vendored
Normal file
20
frontend/node_modules/refractor/lang/cilkcpp.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
import refractorCpp from './cpp.js'
|
||||
cilkcpp.displayName = 'cilkcpp'
|
||||
cilkcpp.aliases = ['cilk', 'cilk-cpp']
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function cilkcpp(Prism) {
|
||||
Prism.register(refractorCpp)
|
||||
Prism.languages.cilkcpp = Prism.languages.insertBefore('cpp', 'function', {
|
||||
'parallel-keyword': {
|
||||
pattern: /\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,
|
||||
alias: 'keyword'
|
||||
}
|
||||
})
|
||||
Prism.languages['cilk-cpp'] = Prism.languages['cilkcpp']
|
||||
Prism.languages['cilk'] = Prism.languages['cilkcpp']
|
||||
}
|
||||
Reference in New Issue
Block a user