Loading ...
Sorry, an error occurred while loading the content.

Patch 7.1.300

Expand Messages
  • Bram Moolenaar
    Patch 7.1.300 Problem: Value of asmsyntax argument isn t checked for valid characters. Solution: Only accepts letters and digits. Files:
    Message 1 of 1 , May 28, 2008
    • 0 Attachment
      Patch 7.1.300
      Problem: Value of asmsyntax argument isn't checked for valid characters.
      Solution: Only accepts letters and digits.
      Files: runtime/filetype.vim


      *** ../vim-7.1.299/runtime/filetype.vim Wed May 28 16:48:00 2008
      --- runtime/filetype.vim Wed May 28 17:11:37 2008
      ***************
      *** 190,196 ****
      let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
      \" ".getline(5)." "
      if head =~ '\sasmsyntax=\S\+\s'
      ! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\(\S\+\)\s.*','\1', "")
      elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
      let b:asmsyntax = "vmasm"
      endif
      --- 190,196 ----
      let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
      \" ".getline(5)." "
      if head =~ '\sasmsyntax=\S\+\s'
      ! let b:asmsyntax = substitute(head, '.*\sasmsyntax=\([a-zA-Z0-9]\+\)\s.*','\1', "")
      elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
      let b:asmsyntax = "vmasm"
      endif
      *** ../vim-7.1.299/src/version.c Wed May 28 16:48:01 2008
      --- src/version.c Wed May 28 17:28:05 2008
      ***************
      *** 668,669 ****
      --- 673,676 ----
      { /* Add new patch number below this line */
      + /**/
      + 300,
      /**/

      --
      If you don't get everything you want, think of
      everything you didn't get and don't want.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.