amiga.vim 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. " Vim syntax file
  2. " Language: AmigaDos
  3. " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
  4. " Last Change: Aug 31, 2016
  5. " Version: 10
  6. " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA
  7. " quit when a syntax file was already loaded
  8. if exists("b:current_syntax")
  9. finish
  10. endif
  11. syn case ignore
  12. " Amiga Devices
  13. syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
  14. " Amiga aliases and paths
  15. syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:"
  16. syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
  17. " strings
  18. syn region amiString start=+"+ end=+"+ oneline contains=@Spell
  19. " numbers
  20. syn match amiNumber "\<\d\+\>"
  21. " Logic flow
  22. syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL
  23. syn keyword amiFlow skip endskip
  24. syn match amiError "else\|endif"
  25. syn keyword amiElse contained else
  26. syn keyword amiTest contained not warn error fail eq gt ge val exists
  27. " echo exception
  28. syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
  29. syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
  30. syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
  31. " commands
  32. syn keyword amiKey addbuffers copy fault join pointer setdate
  33. syn keyword amiKey addmonitor cpu filenote keyshow printer setenv
  34. syn keyword amiKey alias date fixfonts lab printergfx setfont
  35. syn keyword amiKey ask delete fkey list printfiles setmap
  36. syn keyword amiKey assign dir font loadwb prompt setpatch
  37. syn keyword amiKey autopoint diskchange format lock protect sort
  38. syn keyword amiKey avail diskcopy get magtape quit stack
  39. syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status
  40. syn keyword amiKey bindmonitor display graphicdump makelink remrad time
  41. syn keyword amiKey blanker iconedit more rename type
  42. syn keyword amiKey break ed icontrol mount resident unalias
  43. syn keyword amiKey calculator edit iconx newcli run unset
  44. syn keyword amiKey cd endcli ihelp newshell say unsetenv
  45. syn keyword amiKey changetaskpri endshell info nocapslock screenmode version
  46. syn keyword amiKey clock eval initprinter nofastmem search wait
  47. syn keyword amiKey cmd exchange input overscan serial wbpattern
  48. syn keyword amiKey colors execute install palette set which
  49. syn keyword amiKey conclip failat iprefs path setclock why
  50. " comments
  51. syn cluster amiCommentGroup contains=amiTodo,@Spell
  52. syn case ignore
  53. syn keyword amiTodo contained todo
  54. syn case match
  55. syn match amiComment ";.*$" contains=amiCommentGroup
  56. " sync
  57. syn sync lines=50
  58. " Define the default highlighting.
  59. if !exists("skip_amiga_syntax_inits")
  60. hi def link amiAlias Type
  61. hi def link amiComment Comment
  62. hi def link amiDev Type
  63. hi def link amiEcho String
  64. hi def link amiElse Statement
  65. hi def link amiError Error
  66. hi def link amiKey Statement
  67. hi def link amiNumber Number
  68. hi def link amiString String
  69. hi def link amiTest Special
  70. endif
  71. let b:current_syntax = "amiga"
  72. " vim:ts=15