forked from x/ContextOS
72 lines
2.3 KiB
VimL
72 lines
2.3 KiB
VimL
syn match shComment "#.*$"
|
|
syn match shString "'[^']*'"
|
|
syn match shString "\"[^\"]*\""
|
|
syn match shNumber "-\=\<\d\+\>#\="
|
|
|
|
syn match shOperator "=\|+\|-\|*\|/"
|
|
syn match shOperator "<\|<=\|>\|>=\|!=\|=="
|
|
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 shift trap ulimit umask wait
|
|
|
|
" syn keyword shStatement if else elif end for
|
|
|
|
" ctx command
|
|
syn match shStatement "\(^\|\t\| \|$(\)cache"
|
|
syn match shStatement "\(^\|\t\| \|$(\)config"
|
|
" ctx command
|
|
syn match shCommand "\(^\|\t\| \|$(\)command"
|
|
" cli command
|
|
syn match shStatement "\(^\|\t\| \|$(\)let"
|
|
syn match shStatement "\(^\|\t\| \|$(\)var"
|
|
syn match shStatement "\(^\|\t\| \|$(\)return"
|
|
syn match shStatement "\(^\|\t\| \|$(\)arguments"
|
|
syn match shStatement "\(^\|\t\| \|$(\)source"
|
|
syn match shCommand "\(^\|\t\| \|$(\)alias"
|
|
|
|
" aaa command
|
|
syn match shCommand "\(^\|\t\| \|$(\)hash"
|
|
syn match shCommand "\(^\|\t\| \|$(\)auth"
|
|
syn match shOperator "\<\(data\|ship\|role\)\>"
|
|
syn match shSubCommand "\<\(username\|userrole\|componet\|command\)\>"
|
|
|
|
" web command
|
|
syn match shCommand "\(^\|\t\| \|$(\)serve"
|
|
syn match shCommand "\(^\|\t\| \|$(\)route"
|
|
syn match shCommand "\(^\|\t\| \|$(\)client"
|
|
syn match shCommand "\(^\|\t\| \|$(\)cookie"
|
|
syn match shCommand "\(^\|\t\| \|$(\)template"
|
|
|
|
" mdb command
|
|
syn match shCommand "\(^\|\t\| \|$(\)open"
|
|
|
|
|
|
hi def link shComment Comment
|
|
hi def link shString String
|
|
hi def link shNumber Number
|
|
hi def link shOperator Operator
|
|
hi def link shShellVariables PreProc
|
|
hi def link shStatement Statement
|
|
hi def link shCommand Identifier
|
|
hi def link shSubCommand String
|
|
|
|
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
|
|
|