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 / patches / 5.8.002 < prev    next >
Encoding:
Internet Message Format  |  2001-06-05  |  5.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.8.002
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.8.002
  8. Problem:    The dtd.vim syntax file contained a few items that require Vim
  9.         6.0.
  10. Solution:   Made the syntax file portable. (Johannes Zellner)
  11. Files:        runtime/syntax/dtd.vim
  12.  
  13.  
  14. *** ../vim-5.8.001/runtime/syntax/dtd.vim    Mon Jun  4 22:16:06 2001
  15. --- runtime/syntax/dtd.vim    Wed Jun  6 18:35:20 2001
  16. ***************
  17. *** 3,23 ****
  18.   " Maintainer:    Johannes Zellner <johannes@zellner.org>
  19.   "        Author and previous maintainer:
  20.   "        Daniel Amyot <damyot@site.uottawa.ca>
  21. ! " Last Change:    Mon, 21 May 2001 13:13:43 +0200
  22.   " Filenames:    *.dtd
  23.   " URL:        http://www.zellner.org/vim/syntax/dtd.vim
  24. - " $Id: dtd.vim,v 1.7 2001/05/21 11:16:39 joze Exp $
  25. - "
  26. - "
  27. - " CREDITS:
  28. - " - original note of Daniel Amyot <damyot@site.uottawa.ca>:
  29. - "   This file is an adaptation of pascal.vim by Mario Eusebio
  30. - "   I'm not sure I understand all of the syntax highlight language,
  31. - "   but this file seems to do the job for simple DTD in XML.
  32. - "   This would have to be extended to cover the whole of SGML DTDs though.
  33. - "   Unfortunately, I don't know enough about the somewhat complex SGML
  34. - "   to do it myself. Volunteers are most welcomed!
  35. - "
  36.   "
  37.   " REFERENCES:
  38.   "   http://www.w3.org/TR/html40/
  39. --- 3,11 ----
  40.   " Maintainer:    Johannes Zellner <johannes@zellner.org>
  41.   "        Author and previous maintainer:
  42.   "        Daniel Amyot <damyot@site.uottawa.ca>
  43. ! " Last Change:    Wed, 06 Jun 2001 14:07:20 +0200
  44.   " Filenames:    *.dtd
  45.   " URL:        http://www.zellner.org/vim/syntax/dtd.vim
  46.   "
  47.   " REFERENCES:
  48.   "   http://www.w3.org/TR/html40/
  49. ***************
  50. *** 26,39 ****
  51.   " TODO:
  52.   "   - improve synchronizing.
  53.   
  54. ! " Quit when a syntax file was already loaded
  55. ! if exists("b:current_syntax")
  56. !   finish
  57.   endif
  58.   
  59. - let s:dtd_cpo_save = &cpo
  60. - set cpo&vim
  61.   if !exists("dtd_ignore_case")
  62.       " I prefer having the case takes into consideration.
  63.       syn case match
  64. --- 14,31 ----
  65.   " TODO:
  66.   "   - improve synchronizing.
  67.   
  68. ! if version < 600
  69. !     syntax clear
  70. !     let __dtd_cpo_save__ = &cpo
  71. !     set cpo&
  72. ! else
  73. !     if exists("b:current_syntax")
  74. !     finish
  75. !     endif
  76. !     let s:dtd_cpo_save = &cpo
  77. !     set cpo&vim
  78.   endif
  79.   
  80.   if !exists("dtd_ignore_case")
  81.       " I prefer having the case takes into consideration.
  82.       syn case match
  83. ***************
  84. *** 134,165 ****
  85.   
  86.   syn sync lines=250
  87.   
  88. ! " The default highlighting.
  89. ! hi def link dtdFunction        Function
  90. ! hi def link dtdTag        Normal
  91. ! hi def link dtdType        Type
  92. ! hi def link dtdAttrType        dtdType
  93. ! hi def link dtdAttrDef        dtdType
  94. ! hi def link dtdConstant        Constant
  95. ! hi def link dtdString        dtdConstant
  96. ! hi def link dtdEnum        dtdConstant
  97. ! hi def link dtdCard        dtdFunction
  98. ! hi def link dtdEntity        Statement
  99. ! hi def link dtdEntityPunct    dtdType
  100. ! hi def link dtdParamEntityInst    dtdConstant
  101. ! hi def link dtdParamEntityPunct    dtdType
  102. ! hi def link dtdParamEntityDecl    dtdType
  103. ! hi def link dtdParamEntityDPunct dtdComment
  104. ! hi def link dtdComment        Comment
  105. ! hi def link dtdTagName        Statement
  106. ! hi def link dtdError        Error
  107. ! hi def link dtdTodo        Todo
  108.   
  109. ! let b:current_syntax = "dtd"
  110.   
  111. ! let &cpo = s:dtd_cpo_save
  112. ! unlet s:dtd_cpo_save
  113.   
  114.   " vim: ts=8
  115. --- 126,176 ----
  116.   
  117.   syn sync lines=250
  118.   
  119. ! " Define the default highlighting.
  120. ! " For version 5.7 and earlier: only when not done already
  121. ! " For version 5.8 and later: only when an item doesn't have highlighting yet
  122. ! if version >= 508 || !exists("did_dtd_syn_inits")
  123. !     if version < 508
  124. !     let did_dtd_syn_inits = 1
  125. !     command -nargs=+ HiLink hi link <args>
  126. !     else
  127. !     command -nargs=+ HiLink hi def link <args>
  128. !     endif
  129. !     " The default highlighting.
  130. !     HiLink dtdFunction        Function
  131. !     HiLink dtdTag        Normal
  132. !     HiLink dtdType        Type
  133. !     HiLink dtdAttrType        dtdType
  134. !     HiLink dtdAttrDef        dtdType
  135. !     HiLink dtdConstant        Constant
  136. !     HiLink dtdString        dtdConstant
  137. !     HiLink dtdEnum        dtdConstant
  138. !     HiLink dtdCard        dtdFunction
  139. !     HiLink dtdEntity        Statement
  140. !     HiLink dtdEntityPunct    dtdType
  141. !     HiLink dtdParamEntityInst    dtdConstant
  142. !     HiLink dtdParamEntityPunct    dtdType
  143. !     HiLink dtdParamEntityDecl    dtdType
  144. !     HiLink dtdParamEntityDPunct dtdComment
  145. !     HiLink dtdComment        Comment
  146. !     HiLink dtdTagName        Statement
  147. !     HiLink dtdError        Error
  148. !     HiLink dtdTodo        Todo
  149.   
  150. !     delcommand HiLink
  151. ! endif
  152.   
  153. ! if version < 600
  154. !     let &cpo = __dtd_cpo_save__
  155. !     unlet __dtd_cpo_save__
  156. ! else
  157. !     let &cpo = s:dtd_cpo_save
  158. !     unlet s:dtd_cpo_save
  159. ! endif
  160. ! let b:current_syntax = "dtd"
  161.   
  162.   " vim: ts=8
  163. *** ../vim-5.8.001/src/version.c    Wed Jun  6 19:11:47 2001
  164. --- src/version.c    Wed Jun  6 19:10:56 2001
  165. ***************
  166. *** 439,440 ****
  167. --- 439,442 ----
  168.   {   /* Add new patch number below this line */
  169. + /**/
  170. +     2,
  171.   /**/
  172.  
  173. -- 
  174. hundred-and-one symptoms of being an internet addict:
  175. 145. You e-mail your boss, informing him you'll be late.
  176.  
  177.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  178. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  179.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  180.