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