drk.vim 702 B

123456789101112131415161718192021
  1. if exists('b:current_syntax')
  2. finish
  3. endif
  4. syn keyword drkKeyword assert enforce for in def return const as let emit contract private proof
  5. syn keyword drkAttr mut
  6. syn keyword drkType BinaryNumber Point Fr SubgroupPoint EdwardsPoint Scalar EncryptedNum list Bool U64 Num Binary
  7. syn match drkFunction "\zs[a-zA-Z0-9_]*\ze("
  8. syn match drkComment "#.*$"
  9. syn match drkNumber '\d\+'
  10. syn match drkConst '[A-Z_]\{2,}[A-Z0-9_]*'
  11. hi def link drkKeyword Statement
  12. hi def link drkAttr StorageClass
  13. hi def link drkType Type
  14. hi def link drkFunction Function
  15. hi def link drkComment Comment
  16. hi def link drkNumber Constant
  17. hi def link drkConst Constant
  18. let b:current_syntax = "drk"