mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
opt vim
This commit is contained in:
parent
117a9114dd
commit
d75d886c3c
@ -5,7 +5,6 @@ highlight kitConst ctermfg=yellow
|
|||||||
syntax match kitConst "kit\.[a-z0-9A-Z_.]*"
|
syntax match kitConst "kit\.[a-z0-9A-Z_.]*"
|
||||||
syntax match kitConst "app\.[a-z0-9A-Z_.]*"
|
syntax match kitConst "app\.[a-z0-9A-Z_.]*"
|
||||||
|
|
||||||
|
|
||||||
highlight msgConst ctermfg=cyan
|
highlight msgConst ctermfg=cyan
|
||||||
syntax match msgConst "\Am\.[a-z0-9A-Z_.]*"
|
syntax match msgConst "\Am\.[a-z0-9A-Z_.]*"
|
||||||
syntax match msgConst "\Amsg\.[a-z0-9A-Z_.]*"
|
syntax match msgConst "\Amsg\.[a-z0-9A-Z_.]*"
|
||||||
|
@ -1,59 +1,20 @@
|
|||||||
function! Keys(which, keys)
|
|
||||||
for key in a:keys
|
|
||||||
if a:which == "Statment"
|
|
||||||
let key = "\"\\(^\\|\\t\\| \\|$(\\)" . key . "\\>\""
|
|
||||||
else
|
|
||||||
let key = "\"\\<" . key . "\\>\""
|
|
||||||
end
|
|
||||||
exec "syn match shy" . a:which. " " . l:key
|
|
||||||
endfor
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
highlight shyArgument ctermfg=cyan
|
set foldmarker={{,}}
|
||||||
highlight shySubCommand ctermfg=yellow
|
highlight shyCommand ctermfg=yellow
|
||||||
|
syntax match shyCommand "^\a*"
|
||||||
|
|
||||||
highlight shyCache ctermfg=yellow
|
highlight shyTitle ctermbg=darkred ctermfg=white
|
||||||
highlight shyConfig ctermfg=yellow
|
syntax match shyTitle "^title"
|
||||||
highlight shyCommand ctermfg=green
|
syntax match shyTitle "^chapter"
|
||||||
highlight shyContext ctermfg=red
|
syntax match shyTitle "^section"
|
||||||
highlight shyComment ctermfg=blue
|
|
||||||
|
highlight shySpark ctermbg=darkgreen ctermfg=white
|
||||||
|
syntax match shySpark "^brief"
|
||||||
|
syntax match shySpark "^spark"
|
||||||
|
|
||||||
highlight shyStatment ctermfg=yellow
|
|
||||||
highlight shyOperator ctermfg=yellow
|
|
||||||
highlight shyVariable ctermfg=magenta
|
|
||||||
highlight shyNumber ctermfg=magenta
|
|
||||||
highlight shyString ctermfg=magenta
|
highlight shyString ctermfg=magenta
|
||||||
|
syn match shyString "\`[^\`]*\`"
|
||||||
|
syn region shyString start="`" end="`"
|
||||||
|
|
||||||
syn match shyString "'[^']*'"
|
syn match Comment "\"[^\"]*\""
|
||||||
syn match shyString "\"[^\"]*\""
|
|
||||||
syn match shyNumber "-\=\<\d\+\>#\="
|
|
||||||
syn match shyNumber "false\|true"
|
|
||||||
syn match shVariable "\$[_a-zA-Z0-9]\+\>"
|
|
||||||
syn match shVariable "@[_a-zA-Z0-9]\+\>"
|
|
||||||
|
|
||||||
syn match shyComment "#.*$"
|
|
||||||
syn match shyContext "^\~[a-zA-Z0-9_\.]\+\>"
|
|
||||||
syn match shyCommand "\(^\|\t\| \|$(\)[a-zA-Z0-9_\.]\+\>"
|
|
||||||
|
|
||||||
syn match shyOperator "option"
|
|
||||||
|
|
||||||
call Keys("Statment", ["fun", "kit"])
|
|
||||||
call Keys("SubCommand", ["private", "protected", "public"])
|
|
||||||
|
|
||||||
call Keys("Statment", ["config", "cache"])
|
|
||||||
call Keys("Statment", ["return", "source"])
|
|
||||||
call Keys("Statment", ["var", "let"])
|
|
||||||
call Keys("Statment", ["if", "else", "else if", "for", "end"])
|
|
||||||
call Keys("Statment", ["label", "goto"])
|
|
||||||
" context nfs
|
|
||||||
" call Keys("SubCommand", ["import", "export", "load", "save"])
|
|
||||||
|
|
||||||
" context ctx
|
|
||||||
" call Keys("Argument", ["list", "map"])
|
|
||||||
" context mdb
|
|
||||||
call Keys("Argument", ["dbname", "dbhelp"])
|
|
||||||
" context aaa
|
|
||||||
call Keys("Argument", ["user", "componet", "command"])
|
|
||||||
" context web
|
|
||||||
call Keys("Argument", ["client", "cookie", "header"])
|
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ import (
|
|||||||
_ "github.com/shylinux/icebergs/misc"
|
_ "github.com/shylinux/icebergs/misc"
|
||||||
|
|
||||||
_ "github.com/shylinux/icebergs/misc/alpha"
|
_ "github.com/shylinux/icebergs/misc/alpha"
|
||||||
|
_ "github.com/shylinux/icebergs/misc/chrome"
|
||||||
_ "github.com/shylinux/icebergs/misc/input"
|
_ "github.com/shylinux/icebergs/misc/input"
|
||||||
_ "github.com/shylinux/icebergs/misc/lark"
|
_ "github.com/shylinux/icebergs/misc/lark"
|
||||||
_ "github.com/shylinux/icebergs/misc/mp"
|
_ "github.com/shylinux/icebergs/misc/mp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user