Hi,

the Boost libraries (http://www.boost.org) use the '.ipp' extension for
some of their private C++ source files (like they use '.hpp' for their
public header files). See the attached patch to set the filetype for
those files.

norbi
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Index: runtime/filetype.vim
===================================================================
*** runtime/filetype.vim	(revision 1202)
--- runtime/filetype.vim	(working copy)
***************
*** 351,359 ****
  
  " C++
  if has("fname_case")
!   au BufNewFile,BufRead *.cxx,*.c++,*.C,*.H,*.hh,*.hxx,*.hpp,*.moc,*.tcc,*.inl setf cpp
  else
!   au BufNewFile,BufRead *.cxx,*.c++,*.hh,*.hxx,*.hpp,*.moc,*.tcc,*.inl setf cpp
  endif
  
  " .h files can be C, Ch C++, ObjC or ObjC++.
--- 351,359 ----
  
  " C++
  if has("fname_case")
!   au BufNewFile,BufRead *.cxx,*.c++,*.C,*.H,*.hh,*.hxx,*.hpp,*.ipp,*.moc,*.tcc,*.inl setf cpp
  else
!   au BufNewFile,BufRead *.cxx,*.c++,*.hh,*.hxx,*.hpp,*.ipp,*.moc,*.tcc,*.inl setf cpp
  endif
  
  " .h files can be C, Ch C++, ObjC or ObjC++.

Raspunde prin e-mail lui