完成世界书、骰子、apiconfig页面处理
This commit is contained in:
27
frontend/node_modules/refractor/lang/ichigojam.js
generated
vendored
Normal file
27
frontend/node_modules/refractor/lang/ichigojam.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
ichigojam.displayName = 'ichigojam'
|
||||
ichigojam.aliases = []
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function ichigojam(Prism) {
|
||||
// according to the offical reference (EN)
|
||||
// https://ichigojam.net/IchigoJam-en.html
|
||||
Prism.languages.ichigojam = {
|
||||
comment: /(?:\B'|REM)(?:[^\n\r]*)/i,
|
||||
string: {
|
||||
pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,
|
||||
greedy: true
|
||||
},
|
||||
number: /\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
||||
keyword:
|
||||
/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,
|
||||
function:
|
||||
/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,
|
||||
label: /(?:\B@\S+)/,
|
||||
operator: /<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,
|
||||
punctuation: /[\[,;:()\]]/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user