mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
47 lines
1.4 KiB
VimL
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 shStatement cache
|
|
syn keyword shStatement 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
|
|
|