home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / wget.vim < prev    next >
Encoding:
Text File  |  2003-05-11  |  7.1 KB  |  160 lines

  1. " Wget syntax file
  2. " Filename:     wget.vim
  3. " Language:     Wget configuration file ( /etc/wgetrc ~/.wgetrc )
  4. " Maintainer:   Doug Kearns <djkea2@mugca.its.monash.edu.au>
  5. " URL:        http://mugca.its.monash.edu.au/~djkea2/vim/syntax/wget.vim
  6. " Last Change:  2003 May 11
  7.  
  8. " TODO: all commands are actually underscore and hyphen insensitive, though
  9. "       they are normally named as listed below
  10.  
  11. " For version 5.x: Clear all syntax items
  12. " For version 6.x: Quit when a syntax file was already loaded
  13. if version < 600
  14.   syntax clear
  15. elseif exists("b:current_syntax")
  16.   finish
  17. endif
  18.  
  19. syn match   wgetComment    "^\s*#.*$" contains=wgetTodo
  20.  
  21. syn keyword wgetTodo       TODO NOTE FIXME XXX contained
  22.  
  23. syn match   wgetAssignment "^\s*[A-Za-z_-]\+\s*=\s*.*$" contains=wgetCommand,wgetAssignmentOperator,wgetString,wgetBoolean,wgetNumber,wgetValue,wgetQuota
  24.  
  25. syn match   wgetAssignmentOperator "=" contained
  26.  
  27. syn region  wgetString     start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline
  28. syn region  wgetString     start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline
  29.  
  30. " Make this a match so that always_rest matches properly
  31. syn case ignore
  32. syn match   wgetBoolean    "\<on\|off\|always\|never\|1\|0\>" contained
  33. syn case match
  34.  
  35. syn match   wgetNumber     "\<\d\+\|inf\>"    contained
  36.  
  37. syn match   wgetQuota      "\<\d\+[kKmM]\?\>" contained
  38.  
  39. syn case ignore
  40. syn keyword wgetValue      default binary mega giga micro contained
  41. syn case match
  42.  
  43. syn case ignore
  44. syn match wgetCommand      "^\s*accept" contained
  45. syn match wgetCommand      "^\s*add[-_]\=hostdir" contained
  46. syn match wgetCommand      "^\s*always[-_]\=rest" contained
  47. syn match wgetCommand      "^\s*background" contained
  48. syn match wgetCommand      "^\s*backup[-_]\=converted" contained
  49. syn match wgetCommand      "^\s*backups" contained
  50. syn match wgetCommand      "^\s*base" contained
  51. syn match wgetCommand      "^\s*bind[-_]\=address" contained
  52. syn match wgetCommand      "^\s*cache" contained
  53. syn match wgetCommand      "^\s*continue" contained
  54. syn match wgetCommand      "^\s*convert[-_]\=links" contained
  55. syn match wgetCommand      "^\s*cookies" contained
  56. syn match wgetCommand      "^\s*cut[-_]\=dirs" contained
  57. syn match wgetCommand      "^\s*debug" contained
  58. syn match wgetCommand      "^\s*delete[-_]\=after" contained
  59. syn match wgetCommand      "^\s*dir[-_]\=prefix" contained
  60. syn match wgetCommand      "^\s*dir[-_]\=struct" contained
  61. syn match wgetCommand      "^\s*domains" contained
  62. syn match wgetCommand      "^\s*dot[-_]\=bytes" contained
  63. syn match wgetCommand      "^\s*dots[-_]\=in[-_]\=line" contained
  64. syn match wgetCommand      "^\s*dot[-_]\=spacing" contained
  65. syn match wgetCommand      "^\s*dot[-_]\=style" contained
  66. syn match wgetCommand      "^\s*egd[-_]\=file" contained
  67. syn match wgetCommand      "^\s*exclude[-_]\=directories" contained
  68. syn match wgetCommand      "^\s*exclude[-_]\=domains" contained
  69. syn match wgetCommand      "^\s*follow[-_]\=ftp" contained
  70. syn match wgetCommand      "^\s*follow[-_]\=tags" contained
  71. syn match wgetCommand      "^\s*force[-_]\=html" contained
  72. syn match wgetCommand      "^\s*ftp[-_]\=proxy" contained
  73. syn match wgetCommand      "^\s*glob" contained
  74. syn match wgetCommand      "^\s*header" contained
  75. syn match wgetCommand      "^\s*html[-_]\=extension" contained
  76. syn match wgetCommand      "^\s*htmlify" contained
  77. syn match wgetCommand      "^\s*http[-_]\=keep[-_]\=alive" contained
  78. syn match wgetCommand      "^\s*http[-_]\=passwd" contained
  79. syn match wgetCommand      "^\s*http[-_]\=proxy" contained
  80. syn match wgetCommand      "^\s*https[-_]\=proxy" contained
  81. syn match wgetCommand      "^\s*http[-_]\=user" contained
  82. syn match wgetCommand      "^\s*ignore[-_]\=length" contained
  83. syn match wgetCommand      "^\s*ignore[-_]\=tags" contained
  84. syn match wgetCommand      "^\s*include[-_]\=directories" contained
  85. syn match wgetCommand      "^\s*input" contained
  86. syn match wgetCommand      "^\s*kill[-_]\=longer" contained
  87. syn match wgetCommand      "^\s*limit[-_]\=rate" contained
  88. syn match wgetCommand      "^\s*load[-_]\=cookies" contained
  89. syn match wgetCommand      "^\s*logfile" contained
  90. syn match wgetCommand      "^\s*login" contained
  91. syn match wgetCommand      "^\s*mirror" contained
  92. syn match wgetCommand      "^\s*netrc" contained
  93. syn match wgetCommand      "^\s*no[-_]\=clobber" contained
  94. syn match wgetCommand      "^\s*no[-_]\=parent" contained
  95. syn match wgetCommand      "^\s*no[-_]\=proxy" contained
  96. " Note: this option is deprecated, use 'tries' instead
  97. syn match wgetCommand      "^\s*numtries" contained
  98. syn match wgetCommand      "^\s*output[-_]\=document" contained
  99. syn match wgetCommand      "^\s*page[-_]\=requisites" contained
  100. syn match wgetCommand      "^\s*passive[-_]\=ftp" contained
  101. syn match wgetCommand      "^\s*passwd" contained
  102. syn match wgetCommand      "^\s*progress" contained
  103. syn match wgetCommand      "^\s*proxy[-_]\=passwd" contained
  104. syn match wgetCommand      "^\s*proxy[-_]\=user" contained
  105. syn match wgetCommand      "^\s*quiet" contained
  106. syn match wgetCommand      "^\s*quota" contained
  107. syn match wgetCommand      "^\s*random[-_]\=wait" contained
  108. syn match wgetCommand      "^\s*reclevel" contained
  109. syn match wgetCommand      "^\s*recursive" contained
  110. syn match wgetCommand      "^\s*referer" contained
  111. syn match wgetCommand      "^\s*reject" contained
  112. syn match wgetCommand      "^\s*relative[-_]\=only" contained
  113. syn match wgetCommand      "^\s*remove[-_]\=listing" contained
  114. syn match wgetCommand      "^\s*retr[-_]\=symlinks" contained
  115. syn match wgetCommand      "^\s*robots" contained
  116. syn match wgetCommand      "^\s*save[-_]\=cookies" contained
  117. syn match wgetCommand      "^\s*save[-_]\=headers" contained
  118. syn match wgetCommand      "^\s*server[-_]\=response" contained
  119. " Note: this option was removed in wget 1.8
  120. syn match wgetCommand      "^\s*simple[-_]\=host[-_]\=check" contained
  121. syn match wgetCommand      "^\s*span[-_]\=hosts" contained
  122. syn match wgetCommand      "^\s*spider" contained
  123. syn match wgetCommand      "^\s*sslcertfile" contained
  124. syn match wgetCommand      "^\s*sslcertkey" contained
  125. syn match wgetCommand      "^\s*timeout" contained
  126. syn match wgetCommand      "^\s*time[-_]\=stamping" contained
  127. syn match wgetCommand      "^\s*tries" contained
  128. syn match wgetCommand      "^\s*use[-_]\=proxy" contained
  129. syn match wgetCommand      "^\s*user[-_]\=agent" contained
  130. syn match wgetCommand      "^\s*verbose" contained
  131. syn match wgetCommand      "^\s*wait" contained
  132. syn match wgetCommand      "^\s*wait[-_]\=retry" contained
  133. syn case match
  134.  
  135. " Define the default highlighting.
  136. " For version 5.7 and earlier: only when not done already
  137. " For version 5.8 and later: only when an item doesn't have highlighting yet
  138. if version >= 508 || !exists("did_wget_syn_inits")
  139.   if version < 508
  140.     let did_wget_syn_inits = 1
  141.     command -nargs=+ HiLink hi link <args>
  142.   else
  143.     command -nargs=+ HiLink hi def link <args>
  144.   endif
  145.  
  146.   HiLink wgetAssignmentOperator Special
  147.   HiLink wgetBoolean        Boolean
  148.   HiLink wgetCommand        Identifier
  149.   HiLink wgetComment        Comment
  150.   HiLink wgetNumber        Number
  151.   HiLink wgetQuota        Number
  152.   HiLink wgetString        String
  153.   HiLink wgetTodo        Todo
  154.   HiLink wgetValue        Constant
  155.  
  156.   delcommand HiLink
  157. endif
  158.  
  159. let b:current_syntax = "wget"
  160.