pism.vim 834 B

12345678910111213141516171819202122232425
  1. if exists('b:current_syntax')
  2. finish
  3. endif
  4. syn keyword sapviKeyword constant contract start end
  5. "syn keyword sapviAttr
  6. syn keyword sapviType FixedGenerator BlakePersonalization PedersenPersonalization ByteSize U64 Fr Point Bool Scalar BinarySize
  7. syn match sapviFunction "^[ ]*[a-z_0-9]* "
  8. syn match sapviComment "#.*$"
  9. syn match sapviNumber ' \zs\d\+\ze'
  10. syn match sapviConst '[A-Z_]\{2,}[A-Z0-9_]*'
  11. syn match sapviPreproc "{%.*%}"
  12. syn match sapviPreproc2 "{{.*}}"
  13. hi def link sapviKeyword Statement
  14. "hi def link sapviAttr StorageClass
  15. hi def link sapviPreproc PreProc
  16. hi def link sapviPreproc2 PreProc
  17. hi def link sapviType Type
  18. hi def link sapviFunction Function
  19. hi def link sapviComment Comment
  20. hi def link sapviNumber Constant
  21. hi def link sapviConst Constant
  22. let b:current_syntax = "pism"