1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

opt go.vim

This commit is contained in:
shylinux 2020-02-23 06:34:30 +08:00
parent c88021ab35
commit afa5ee76e1
5 changed files with 10 additions and 22 deletions

View File

@ -1,3 +1,4 @@
# contexts
模块化
集群化
自动化

View File

@ -1,13 +1,13 @@
syntax match Comment "#.*$"
syntax match Comment "Name: \"[^\"]*\""
syntax match Comment "Help: \"[^\"]*\""
syntax match Comment "\<Name: \"[^\"]*\""
syntax match Comment "\<Help: \"[^\"]*\""
highlight kitConst ctermfg=yellow
syntax match kitConst "kit\.[a-z0-9A-Z_.]*"
syntax match kitConst "app\.[a-z0-9A-Z_.]*"
syntax match kitConst "\<kit\.[a-z0-9A-Z_.]*"
syntax match kitConst "\<app\.[a-z0-9A-Z_.]*"
highlight msgConst ctermfg=cyan
syntax match msgConst "\Am\.[a-z0-9A-Z_.]*"
syntax match msgConst "\Amsg\.[a-z0-9A-Z_.]*"
syntax match msgConst "\Asub\.[a-z0-9A-Z_.]*"
syntax match msgConst "\<m\.[a-z0-9A-Z_.]*"
syntax match msgConst "\<msg\.[a-z0-9A-Z_.]*"
syntax match msgConst "\<sub\.[a-z0-9A-Z_.]*"

View File

@ -1,13 +0,0 @@
highlight canConst ctermfg=yellow
syntax match canConst "can"
syntax match canConst "can\.base"
syntax match canConst "can\.core"
syntax match canConst "can\.misc"
syntax match canConst "can\.page"
syntax match canConst "can\.user"
highlight msgConst ctermfg=cyan
syntax match msgConst "m\.[a-zA-Z_.]*"
syntax match msgConst "msg\.[a-zA-Z_.]*"
syntax match msgConst "sub\.[a-zA-Z_.]*"

View File

@ -136,6 +136,8 @@ function! Config(type)
elseif a:type == "txt"
set noexpandtab
elseif a:type == "js"
set filetype=javascript
source ~/.vim/syntax/javascript.vim
set foldmethod=marker
set foldmarker={,}
endif

View File

@ -7,8 +7,6 @@ import (
_ "github.com/shylinux/icebergs/misc"
_ "github.com/shylinux/icebergs/misc/alpha"
_ "github.com/shylinux/icebergs/misc/chrome"
_ "github.com/shylinux/icebergs/misc/input"
_ "github.com/shylinux/icebergs/misc/lark"
_ "github.com/shylinux/icebergs/misc/mp"
_ "github.com/shylinux/icebergs/misc/pi"