| 123456789101112131415161718192021222324252627282930313233343536373839 |
- "For autoload, add this to your VIM config:
- " VIM: .vimrc
- " NeoVIM: .config/nvim/init.vim
- "
- "autocmd BufRead *.pism call SetPismOptions()
- "function SetPismOptions()
- " set syntax=pism
- " source /home/narodnik/src/sapvi/scripts/pism.vim
- "endfunction
- if exists('b:current_syntax')
- finish
- endif
- syn keyword sapviKeyword constant contract start end constraint
- "syn keyword sapviAttr
- syn keyword sapviType FixedGenerator BlakePersonalization PedersenPersonalization ByteSize U64 Fr Point Bool Scalar BinarySize
- syn keyword sapviFunctionKeyword enforce
- syn match sapviFunction "^[ ]*[a-z_0-9]* "
- syn match sapviComment "#.*$"
- syn match sapviNumber ' \zs\d\+\ze'
- syn match sapviConst '[A-Z_]\{2,}[A-Z0-9_]*'
- syn keyword sapviBoolVal true false
- syn match sapviPreproc "{%.*%}"
- syn match sapviPreproc2 "{{.*}}"
- hi def link sapviKeyword Statement
- "hi def link sapviAttr StorageClass
- hi def link sapviPreproc PreProc
- hi def link sapviPreproc2 PreProc
- hi def link sapviType Type
- hi def link sapviFunction Function
- hi def link sapviFunctionKeyword Function
- hi def link sapviComment Comment
- hi def link sapviNumber Constant
- hi def link sapviConst Constant
- hi def link sapviBoolVal Constant
- let b:current_syntax = "pism"
|