Start anew
[git/jnareb-git.git] / share / vim / vim58 / syntax / amiga.vim
blob648c3a852b78781e3282bfdca17a189592a596ef
1 " Vim syntax file
2 " Language:     AmigaDos
3 " Maintainer:   Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
4 " Last Change:  September 26, 2000
5 " Version:     1.01
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
9 if version < 600
10   syntax clear
11 elseif exists("b:current_syntax")
12   finish
13 endif
15 syn case ignore
17 " Amiga Devices
18 syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
20 " Amiga aliases and paths
21 syn match amiAlias      "\<[a-zA-Z][a-zA-Z0-9]\+:"
22 syn match amiAlias      "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
24 " strings
25 syn region amiString    start=+"+ end=+"+ oneline
27 " numbers
28 syn match amiNumber     "\<\d\+\>"
30 " Logic flow
31 syn region      amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif"        contains=ALL
32 syn keyword     amiFlow skip endskip
33 syn match       amiError        "else\|endif"
34 syn keyword     amiElse contained       else
36 syn keyword     amiTest contained       not warn error fail eq gt ge val exists
38 " echo exception
39 syn region      amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
40 syn region      amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
41 syn region      amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
43 " commands
44 syn keyword     amiKey  addbuffers      copy    fault   join    pointer setdate
45 syn keyword     amiKey  addmonitor      cpu     filenote        keyshow printer setenv
46 syn keyword     amiKey  alias   date    fixfonts        lab     printergfx      setfont
47 syn keyword     amiKey  ask     delete  fkey    list    printfiles      setmap
48 syn keyword     amiKey  assign  dir     font    loadwb  prompt  setpatch
49 syn keyword     amiKey  autopoint       diskchange      format  lock    protect sort
50 syn keyword     amiKey  avail   diskcopy        get     magtape quit    stack
51 syn keyword     amiKey  binddrivers     diskdoctor      getenv  makedir relabel status
52 syn keyword     amiKey  bindmonitor     display graphicdump     makelink        remrad  time
53 syn keyword     amiKey  blanker         iconedit        more    rename  type
54 syn keyword     amiKey  break   ed      icontrol        mount   resident        unalias
55 syn keyword     amiKey  calculator      edit    iconx   newcli  run     unset
56 syn keyword     amiKey  cd      endcli  ihelp   newshell        say     unsetenv
57 syn keyword     amiKey  changetaskpri   endshell        info    nocapslock      screenmode      version
58 syn keyword     amiKey  clock   eval    initprinter     nofastmem       search  wait
59 syn keyword     amiKey  cmd     exchange        input   overscan        serial  wbpattern
60 syn keyword     amiKey  colors  execute install palette set     which
61 syn keyword     amiKey  conclip failat  iprefs  path    setclock        why
63 " comments
64 syn cluster     amiCommentGroup contains=amiTodo
65 syn case ignore
66 syn keyword     amiTodo contained       todo
67 syn case match
68 syn match       amiComment      ";.*$" contains=amiCommentGroup
70 " sync
71 syn sync lines=50
73 " Define the default highlighting.
74 " For version 5.7 and earlier: only when not done already
75 " For version 5.8 and later: only when an item doesn't have highlighting yet
76 if version >= 508 || !exists("did_amiga_syn_inits")
77   if version < 508
78     let did_amiga_syn_inits = 1
79     command -nargs=+ HiLink hi link <args>
80   else
81     command -nargs=+ HiLink hi def link <args>
82   endif
84   HiLink amiAlias       Type
85   HiLink amiComment     Comment
86   HiLink amiDev Type
87   HiLink amiEcho        String
88   HiLink amiElse        Statement
89   HiLink amiError       Error
90   HiLink amiKey Statement
91   HiLink amiNumber      Number
92   HiLink amiString      String
93   HiLink amiTest        Special
95   delcommand HiLink
96 endif
98 let b:current_syntax = "amiga"
100 " vim:ts=15