...
 
Commits (7)
autocmd BufNewFile,BufRead ~/.config/ion/initrc set filetype=ion
autocmd BufNewFile,BufRead *.ion set filetype=ion
autocmd BufNewFile,BufRead,StdinReadPost *
......
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
if version < 600
so <sfile>:p:h/sh.vim
else
runtime! syntax/sh.vim
unlet b:current_syntax
endif
syn region doubleQuote start='"' end='"' contains=arrayVar,variable,process,singleQuote
syn region singleQuote start='\'' end='\''
syn region arrayVar start="@{" end="}"
syn match arrayVar "@[a-zA-Z0-9_]\+"
syn region variable start="${" end="}"
syn match variable "$[a-zA-Z0-9_]\+"
syn region process start="$(" end=")" transparent
syn region process start="@(" end=")" transparent
syn match ionNumber '[+-]\?\([0-9]*[.]\)\?[0-9]\+'
syn match comment '[#].*$'
syn match operator '&'
syn match operator '&&'
syn match operator '||'
syn match operator '[|<>&]'
syn match flag '[ ]\([-]\)\w\+'
syntax keyword ionKeyword .
syntax keyword ionKeyword ..
syntax keyword ionKeyword alias
syntax keyword ionKeyword and
syntax keyword ionKeyword bg
syntax keyword ionKeyword break
syntax keyword ionKeyword calc
syntax keyword ionKeyword case
syntax keyword ionKeyword cd
syntax keyword ionKeyword complete
syntax keyword ionKeyword continue
syntax keyword ionKeyword count
syntax keyword ionKeyword dirs
syntax keyword ionKeyword disown
syntax keyword ionKeyword drop
syntax keyword ionKeyword echo
syntax keyword ionKeyword else
syntax keyword ionKeyword end
syntax keyword ionKeyword eval
syntax keyword ionKeyword exec
syntax keyword ionKeyword exit
syntax keyword ionKeyword false
syntax keyword ionKeyword fg
syntax keyword ionKeyword fn
syntax keyword ionKeyword for
syntax keyword ionKeyword help
syntax keyword ionKeyword history
syntax keyword ionKeyword if
syntax keyword ionKeyword in
syntax keyword ionKeyword jobs
syntax keyword ionKeyword let
syntax keyword ionKeyword match
syntax keyword ionKeyword matches
syntax keyword ionKeyword mkdir
syntax keyword ionKeyword not
syntax keyword ionKeyword or
syntax keyword ionKeyword popd
syntax keyword ionKeyword pushd
syntax keyword ionKeyword pwd
syntax keyword ionKeyword read
syntax keyword ionKeyword set
syntax keyword ionKeyword source
syntax keyword ionKeyword status
syntax keyword ionKeyword suspend
syntax keyword ionKeyword test
syntax keyword ionKeyword time
syntax keyword ionKeyword true
syntax keyword ionKeyword unalias
syntax keyword ionKeyword wait
syntax keyword ionKeyword while
syn region shSingleQuote matchgroup=shQuote start=+'+ skip=+\\\\\|\\.\|\\'+ end=+'+ contains=@Spell
hi Operator cterm=bold ctermfg=white
hi Array cterm=bold ctermfg=lightblue
hi String cterm=bold ctermfg=lightmagenta
hi DoubleQuote ctermfg=green
hi SingleQuote ctermfg=lightgreen
hi Numbers ctermfg=cyan
hi! Comment ctermfg=grey cterm=italic
hi Keywords ctermfg=magenta cterm=bold
hi Flag cterm=bold ctermfg=darkyellow
syntax keyword shFunctionKey &&
syntax keyword shFunctionKey &
syntax keyword shFunctionKey .
syntax keyword shFunctionKey ..
syntax keyword shFunctionKey alias
syntax keyword shFunctionKey break
syntax keyword shFunctionKey cd
syntax keyword shFunctionKey complete
syntax keyword shFunctionKey continue
syntax keyword shFunctionKey count
syntax keyword shFunctionKey let
syntax keyword shFunctionKey mkdir
syntax keyword shFunctionKey echo
syntax keyword shFunctionKey else
syntax keyword shFunctionKey end
syntax keyword shFunctionKey exec
syntax keyword shFunctionKey exit
syntax keyword shFunctionKey for
syntax keyword shFunctionKey history
syntax keyword shFunctionKey if
syntax keyword shFunctionKey not
syntax keyword shFunctionKey pwd
syntax keyword shFunctionKey read
syntax keyword shFunctionKey set
syntax keyword shFunctionKey status
syntax keyword shFunctionKey test
syntax keyword shFunctionKey while
syntax keyword shFunctionKey in
hi def link ionKeyword Keywords
hi def link arrayVar Array
hi def link variable String
hi def link ionNumber Numbers
hi def link doubleQuote DoubleQuote
hi def link singleQuote SingleQuote
hi def link process PreProc
hi def link comment Comment
hi def link operator Operator
hi def link flag Flag