1
0
forked from x/ContextOS
ContextOS/etc/shy.vim
2018-06-07 22:31:36 +08:00

47 lines
1.4 KiB
VimL

syn match shComment "#.*$"
syn match shNumber "-\=\<\d\+\>#\="
syn match shComment "\"[^\"]*\""
syn match shOperator "="
syn match shOperator "\~[-_a-zA-Z0-9]\+\>"
syn match shShellVariables "\$[-_a-zA-Z0-9]\+\>"
syn match shShellVariables "@[-_a-zA-Z0-9]\+\>"
syn keyword shStatement break cd chdir continue eval exec exit kill newgrp pwd read readonly return shift test trap ulimit umask wait
syn keyword shStatement source return function
syn keyword shStatement if else elif end for
syn keyword shStatement let var
syn keyword shCommand cache
syn keyword shCommand config
syn keyword shCommand command
syn keyword shCommand open
syn keyword shCommand cookie
syn keyword shCommand login
hi def link shComment Comment
hi def link shNumber Number
hi def link shString String
hi def link shOperator Operator
hi def link shShellVariables PreProc
hi def link shStatement Statement
hi def link shCommand Identifier
hi def link shArithmetic Special
hi def link shCharClass Identifier
hi def link shSnglCase Statement
hi def link shCommandSub Special
hi def link shConditional Conditional
hi def link shCtrlSeq Special
hi def link shExprRegion Delimiter
hi def link shFunctionKey Function
hi def link shFunctionName Function
hi def link shRepeat Repeat
hi def link shSet Statement
hi def link shSetList Identifier
hi def link shSpecial Special
hi def link shTodo Todo
hi def link shAlias Identifier