Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 824 Bytes

File metadata and controls

32 lines (26 loc) · 824 Bytes

php.vim

Vim syntax file for PHP

Yet another PHP syntax file for VIM.
It's a light syntax file because there are:

  • No support for PHP native functions
  • No support for PHP native classes
  • No support for PHP native interfaces
  • No support for PHP native constants
  • No support for PHP short tags, ie <? and ?>
  • No support for other syntax like HTML, JavaScript or SQL.

In order to use it, just put it in your .vim/syntax directory.
It can be used only with VIM ≥ 7.

Features

  • Support PHP 5.4 syntax
  • Support annotations in comment block
  • Fold functions, classes, interfaces, methods
  • Fold comment block
  • Fold try and catch block.
  • Fold namespace importation if the use statement is used as a block, ie:
use
   foo\bar,
	atoum
;