diff --git a/lib/user.js b/lib/user.js index 7d55b41b..dc290b40 100644 --- a/lib/user.js +++ b/lib/user.js @@ -61,10 +61,9 @@ Volcanos("user", {info: {}, agent: { "Close", "关闭", "Close others", "关闭其它", "Close all", "关闭所有", chat.IFRAME, "浏览", chat.LOCATION, "地图", nfs.SAVE, "保存", nfs.LOAD, "加载", - cli.ORDER, "加载", + cli.SYSTEM, "命令", cli.ORDER, "加载", cli.BUILD, "构建", aaa.INVITE, "邀请", - cli.SYSTEM, "命令", - "revert", "恢复", + mdb.REVERT, "恢复", "full", "全屏", )[text]||text }, diff --git a/plugin/local/code/inner/syntax.js b/plugin/local/code/inner/syntax.js index 3e325250..0a049d2e 100644 --- a/plugin/local/code/inner/syntax.js +++ b/plugin/local/code/inner/syntax.js @@ -28,6 +28,57 @@ Volcanos(chat.ONSYNTAX, { "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: { link: "c", }, @@ -155,7 +206,7 @@ Volcanos(chat.ONSYNTAX, { "compgen": code.FUNCTION, "bind": code.FUNCTION, "alias": code.FUNCTION, - + "xargs": code.FUNCTION, "curl": code.FUNCTION, "sed": code.FUNCTION, @@ -165,7 +216,7 @@ Volcanos(chat.ONSYNTAX, { "tail": code.FUNCTION, "head": code.FUNCTION, "grep": code.FUNCTION, - + "/dev/null": code.CONSTANT, "DEBUG": code.CONSTANT, "EXIT": code.CONSTANT, @@ -193,6 +244,19 @@ Volcanos(chat.ONSYNTAX, { "sequence": code.KEYWORD, }, }, + py: { + prefix: { + "#!": code.COMMENT, + "# ": code.COMMENT, + }, + keyword: { + "import": code.KEYWORD, + "from": code.KEYWORD, + "return": code.KEYWORD, + + "print": code.FUNCTION, + }, + }, go: { split: { operator: "{([- :;!.,*])}", @@ -258,8 +322,6 @@ Volcanos(chat.ONSYNTAX, { render: {}, link: "go", }, - sum: { - }, mod: { split: { operator: "()", @@ -275,18 +337,7 @@ Volcanos(chat.ONSYNTAX, { "=>": code.KEYWORD, }, }, - py: { - prefix: { - "#!": code.COMMENT, - "# ": code.COMMENT, - }, - keyword: { - "import": code.KEYWORD, - "from": code.KEYWORD, - "return": code.KEYWORD, - - "print": code.FUNCTION, - }, + sum: { }, js: { split: { @@ -347,7 +398,7 @@ Volcanos(chat.ONSYNTAX, { "delete": code.FUNCTION, "confirm": code.FUNCTION, "alert": code.FUNCTION, - + "kit": code.DATATYPE, "ice": code.DATATYPE, "can": code.DATATYPE, @@ -394,7 +445,7 @@ Volcanos(chat.ONSYNTAX, { "h1": code.KEYWORD, "h2": code.KEYWORD, "h3": code.KEYWORD, - + "hover": code.DATATYPE, "focus": code.DATATYPE, diff --git a/proto.js b/proto.js index 38cf2a6b..637e2b1a 100644 --- a/proto.js +++ b/proto.js @@ -70,7 +70,7 @@ var cli = { YELLOW: "yellow", CYAN: "cyan", PURPLE: "purple", MAGENTA: "magenta", GLASS: "#0000", MAKE: "make", MAIN: "main", EXEC: "exec", DONE: "done", COST: "cost", FROM: "from", CLEAR: "clear", PWD: "pwd", - ORDER: "order", + ORDER: "order", BUILD: "build", } var aaa = { 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", INPUTS: "inputs", PRUNES: "prunes", EXPORT: "export", IMPORT: "import", SEARCH: "search", ENGINE: "engine", RENDER: "render", PLUGIN: "plugin", + REVERT: "revert", MAIN: "main", PAGE: "page", NEXT: "next", PREV: "prev", LIMIT: "limit", OFFEND: "offend", FOREACH: "*", RANDOMS: "%",