art.vim 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. " Vim syntax file
  2. " Language: ART-IM and ART*Enterprise
  3. " Maintainer: Dorai Sitaram <ds26@gte.com>
  4. " URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
  5. " Last Change: 2011 Dec 28 by Thilo Six
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. syn case ignore
  12. syn keyword artspform => and assert bind
  13. syn keyword artspform declare def-art-fun deffacts defglobal defrule defschema do
  14. syn keyword artspform else for if in$ not or
  15. syn keyword artspform progn retract salience schema test then while
  16. syn match artvariable "?[^ \t";()|&~]\+"
  17. syn match artglobalvar "?\*[^ \t";()|&~]\+\*"
  18. syn match artinstance "![^ \t";()|&~]\+"
  19. syn match delimiter "[()|&~]"
  20. syn region string start=/"/ skip=/\\[\\"]/ end=/"/
  21. syn match number "\<[-+]\=\([0-9]\+\(\.[0-9]*\)\=\|\.[0-9]\+\)\>"
  22. syn match comment ";.*$"
  23. syn match comment "#+:\=ignore" nextgroup=artignore skipwhite skipnl
  24. syn region artignore start="(" end=")" contained contains=artignore,comment
  25. syn region artignore start=/"/ skip=/\\[\\"]/ end=/"/ contained
  26. hi def link artinstance type
  27. hi def link artglobalvar preproc
  28. hi def link artignore comment
  29. hi def link artspform statement
  30. hi def link artvariable function
  31. let b:current_syntax = "art"
  32. let &cpo = s:cpo_save
  33. unlet s:cpo_save