1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2022-12-12 19:42:12 +08:00
parent 65c8ff8de6
commit 90df54ba48
3 changed files with 73 additions and 22 deletions

View File

@ -61,10 +61,9 @@ Volcanos("user", {info: {}, agent: {
"Close", "关闭", "Close others", "关闭其它", "Close all", "关闭所有", "Close", "关闭", "Close others", "关闭其它", "Close all", "关闭所有",
chat.IFRAME, "浏览", chat.LOCATION, "地图", chat.IFRAME, "浏览", chat.LOCATION, "地图",
nfs.SAVE, "保存", nfs.LOAD, "加载", nfs.SAVE, "保存", nfs.LOAD, "加载",
cli.ORDER, "加载", cli.SYSTEM, "命令", cli.ORDER, "加载", cli.BUILD, "构建",
aaa.INVITE, "邀请", aaa.INVITE, "邀请",
cli.SYSTEM, "命令", mdb.REVERT, "恢复",
"revert", "恢复",
"full", "全屏", "full", "全屏",
)[text]||text )[text]||text
}, },

View File

@ -28,6 +28,57 @@ Volcanos(chat.ONSYNTAX, {
"BUGS": code.KEYWORD, "BUGS": code.KEYWORD,
}, },
}, },
vimrc: {
link: "vim",
},
vim: {
split: {
operator: "{[(&.,;!|<>)]}",
},
prefix: {
"\"": "comment",
},
keyword: {
"source": code.KEYWORD,
"finish": code.KEYWORD,
"set": code.KEYWORD,
"let": code.KEYWORD,
"end": code.KEYWORD,
"if": code.KEYWORD,
"else": code.KEYWORD,
"elseif": code.KEYWORD,
"endif": code.KEYWORD,
"for": code.KEYWORD,
"in": code.KEYWORD,
"continue": code.KEYWORD,
"break": code.KEYWORD,
"endfor": code.KEYWORD,
"try": code.KEYWORD,
"catch": code.KEYWORD,
"finally": code.KEYWORD,
"endtry": code.KEYWORD,
"call": code.KEYWORD,
"function": code.KEYWORD,
"return": code.KEYWORD,
"endfunction": code.KEYWORD,
"autocmd": code.KEYWORD,
"command": code.KEYWORD,
"execute": code.KEYWORD,
"nnoremap": code.KEYWORD,
"cnoremap": code.KEYWORD,
"inoremap": code.KEYWORD,
"colorscheme": code.KEYWORD,
"highlight": code.KEYWORD,
"syntax": code.KEYWORD,
"has": code.FUNCTION,
"type": code.FUNCTION,
"empty": code.FUNCTION,
"exists": code.FUNCTION,
"executable": code.FUNCTION,
},
},
h: { h: {
link: "c", link: "c",
}, },
@ -193,6 +244,19 @@ Volcanos(chat.ONSYNTAX, {
"sequence": code.KEYWORD, "sequence": code.KEYWORD,
}, },
}, },
py: {
prefix: {
"#!": code.COMMENT,
"# ": code.COMMENT,
},
keyword: {
"import": code.KEYWORD,
"from": code.KEYWORD,
"return": code.KEYWORD,
"print": code.FUNCTION,
},
},
go: { go: {
split: { split: {
operator: "{([- :;!.,*])}", operator: "{([- :;!.,*])}",
@ -258,8 +322,6 @@ Volcanos(chat.ONSYNTAX, {
render: {}, render: {},
link: "go", link: "go",
}, },
sum: {
},
mod: { mod: {
split: { split: {
operator: "()", operator: "()",
@ -275,18 +337,7 @@ Volcanos(chat.ONSYNTAX, {
"=>": code.KEYWORD, "=>": code.KEYWORD,
}, },
}, },
py: { sum: {
prefix: {
"#!": code.COMMENT,
"# ": code.COMMENT,
},
keyword: {
"import": code.KEYWORD,
"from": code.KEYWORD,
"return": code.KEYWORD,
"print": code.FUNCTION,
},
}, },
js: { js: {
split: { split: {

View File

@ -70,7 +70,7 @@ var cli = {
YELLOW: "yellow", CYAN: "cyan", PURPLE: "purple", MAGENTA: "magenta", GLASS: "#0000", YELLOW: "yellow", CYAN: "cyan", PURPLE: "purple", MAGENTA: "magenta", GLASS: "#0000",
MAKE: "make", MAIN: "main", EXEC: "exec", DONE: "done", COST: "cost", FROM: "from", CLEAR: "clear", MAKE: "make", MAIN: "main", EXEC: "exec", DONE: "done", COST: "cost", FROM: "from", CLEAR: "clear",
PWD: "pwd", PWD: "pwd",
ORDER: "order", ORDER: "order", BUILD: "build",
} }
var aaa = { var aaa = {
LOGIN: "login", LOGOUT: "logout", INVITE: "invite", TOKEN: "token", LOGIN: "login", LOGOUT: "logout", INVITE: "invite", TOKEN: "token",
@ -100,6 +100,7 @@ var mdb = {
CREATE: "create", REMOVE: "remove", INSERT: "insert", DELETE: "delete", MODIFY: "modify", SELECT: "select", CREATE: "create", REMOVE: "remove", INSERT: "insert", DELETE: "delete", MODIFY: "modify", SELECT: "select",
INPUTS: "inputs", PRUNES: "prunes", EXPORT: "export", IMPORT: "import", INPUTS: "inputs", PRUNES: "prunes", EXPORT: "export", IMPORT: "import",
SEARCH: "search", ENGINE: "engine", RENDER: "render", PLUGIN: "plugin", SEARCH: "search", ENGINE: "engine", RENDER: "render", PLUGIN: "plugin",
REVERT: "revert",
MAIN: "main", PAGE: "page", NEXT: "next", PREV: "prev", LIMIT: "limit", OFFEND: "offend", MAIN: "main", PAGE: "page", NEXT: "next", PREV: "prev", LIMIT: "limit", OFFEND: "offend",
FOREACH: "*", RANDOMS: "%", FOREACH: "*", RANDOMS: "%",