]>
Commit | Line | Data |
---|---|---|
3ab71051 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.300 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.300 | |
11 | Problem: Value of asmsyntax argument isn't checked for valid characters. | |
12 | Solution: Only accepts letters and digits. | |
13 | Files: runtime/filetype.vim | |
14 | ||
15 | ||
16 | *** ../vim-7.1.299/runtime/filetype.vim Wed May 28 16:48:00 2008 | |
17 | --- runtime/filetype.vim Wed May 28 17:11:37 2008 | |
18 | *************** | |
19 | *** 190,196 **** | |
20 | let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4). | |
21 | \" ".getline(5)." " | |
22 | if head =~ '\sasmsyntax=\S\+\s' | |
23 | ! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\(\S\+\)\s.*','\1', "") | |
24 | elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library')) | |
25 | let b:asmsyntax = "vmasm" | |
26 | endif | |
27 | --- 190,196 ---- | |
28 | let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4). | |
29 | \" ".getline(5)." " | |
30 | if head =~ '\sasmsyntax=\S\+\s' | |
31 | ! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\([a-zA-Z0-9]\+\)\s.*','\1', "") | |
32 | elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library')) | |
33 | let b:asmsyntax = "vmasm" | |
34 | endif | |
35 | *** ../vim-7.1.299/src/version.c Wed May 28 16:48:01 2008 | |
36 | --- src/version.c Wed May 28 17:28:05 2008 | |
37 | *************** | |
38 | *** 668,669 **** | |
39 | --- 673,676 ---- | |
40 | { /* Add new patch number below this line */ | |
41 | + /**/ | |
42 | + 300, | |
43 | /**/ | |
44 | ||
45 | -- | |
46 | If you don't get everything you want, think of | |
47 | everything you didn't get and don't want. | |
48 | ||
49 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
50 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
51 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
52 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |