|
Karsten Hopp |
524a7f |
To: vim-dev@vim.org
|
|
Karsten Hopp |
524a7f |
Subject: Patch 7.1.300
|
|
Karsten Hopp |
524a7f |
Fcc: outbox
|
|
Karsten Hopp |
524a7f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
524a7f |
Mime-Version: 1.0
|
|
Karsten Hopp |
524a7f |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
524a7f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
524a7f |
------------
|
|
Karsten Hopp |
524a7f |
|
|
Karsten Hopp |
524a7f |
Patch 7.1.300
|
|
Karsten Hopp |
524a7f |
Problem: Value of asmsyntax argument isn't checked for valid characters.
|
|
Karsten Hopp |
524a7f |
Solution: Only accepts letters and digits.
|
|
Karsten Hopp |
524a7f |
Files: runtime/filetype.vim
|
|
Karsten Hopp |
524a7f |
|
|
Karsten Hopp |
524a7f |
|
|
Karsten Hopp |
524a7f |
*** ../vim-7.1.299/runtime/filetype.vim Wed May 28 16:48:00 2008
|
|
Karsten Hopp |
524a7f |
--- runtime/filetype.vim Wed May 28 17:11:37 2008
|
|
Karsten Hopp |
524a7f |
***************
|
|
Karsten Hopp |
524a7f |
*** 190,196 ****
|
|
Karsten Hopp |
524a7f |
let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
|
|
Karsten Hopp |
524a7f |
\" ".getline(5)." "
|
|
Karsten Hopp |
524a7f |
if head =~ '\sasmsyntax=\S\+\s'
|
|
Karsten Hopp |
524a7f |
! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\(\S\+\)\s.*','\1', "")
|
|
Karsten Hopp |
524a7f |
elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
|
|
Karsten Hopp |
524a7f |
let b:asmsyntax = "vmasm"
|
|
Karsten Hopp |
524a7f |
endif
|
|
Karsten Hopp |
524a7f |
--- 190,196 ----
|
|
Karsten Hopp |
524a7f |
let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
|
|
Karsten Hopp |
524a7f |
\" ".getline(5)." "
|
|
Karsten Hopp |
524a7f |
if head =~ '\sasmsyntax=\S\+\s'
|
|
Karsten Hopp |
524a7f |
! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\([a-zA-Z0-9]\+\)\s.*','\1', "")
|
|
Karsten Hopp |
524a7f |
elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
|
|
Karsten Hopp |
524a7f |
let b:asmsyntax = "vmasm"
|
|
Karsten Hopp |
524a7f |
endif
|
|
Karsten Hopp |
524a7f |
*** ../vim-7.1.299/src/version.c Wed May 28 16:48:01 2008
|
|
Karsten Hopp |
524a7f |
--- src/version.c Wed May 28 17:28:05 2008
|
|
Karsten Hopp |
524a7f |
***************
|
|
Karsten Hopp |
524a7f |
*** 668,669 ****
|
|
Karsten Hopp |
524a7f |
--- 673,676 ----
|
|
Karsten Hopp |
524a7f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
524a7f |
+ /**/
|
|
Karsten Hopp |
524a7f |
+ 300,
|
|
Karsten Hopp |
524a7f |
/**/
|
|
Karsten Hopp |
524a7f |
|
|
Karsten Hopp |
524a7f |
--
|
|
Karsten Hopp |
524a7f |
If you don't get everything you want, think of
|
|
Karsten Hopp |
524a7f |
everything you didn't get and don't want.
|
|
Karsten Hopp |
524a7f |
|
|
Karsten Hopp |
524a7f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
524a7f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
524a7f |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
524a7f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|