mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
opt go.vim
This commit is contained in:
parent
c88021ab35
commit
afa5ee76e1
@ -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_.]*"
|
||||
|
||||
|
@ -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_.]*"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user