Hong Xu wrote:

> The attachment is a patch for filetype.vim to improve the determination
> of *.pro files.
> 
> If the pro file is a cpp file, we think that the second line is a
> function prototype which ends with a ";". However, IDL source file may
> also put a single ";" in the second line as comment just as many library
> files shipped with the IDL interpreter do. These IDL source files may
> also be regarded as cpp files by vim. This patch will fix this problem.

Thanks.  The "\+" isn't needed, just requiring one character before the
semicolon will match the same thing:

  if getline(2) =~ '.;$'


-- 
Close your shells, or I'll kill -9 you
Tomorrow I'll quota you
Remember the disks'll always be full
And then while I'm away
I'll write ~ everyday
And I'll send-pr all my buggings to you.
    [ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui