Patching exuberant-ctags for better PHP5 support in vim

Posted by Sander_Marechal on Nov 25, 2008 2:18 PM EDT
Lone Wolves; By Sander Marechal ('s-Hertogenbosch, The Netherlands)
Mail this story
Print this story

Thanks to the taglist vim plugin, vim users have access to a decent tag browser. Taglist is built on exuberant ctags so it support a large amount of languages. Unfortunately however, when the exuberant ctags people replaced their old PHP lexer with a brand new regexp-based parser the quality of parsing PHP code decreased dramatically. Ctags suddenly could not distinguish real class and function declarations from mere mentions of the words “class” and “function” in multi-line comments. This is because the ctags regular expression parses is inherently line oriented. In this article I have two patches that greatly improve PHP support in exuberant-ctags. I will also show you how you can apply these patches on a Debian-based system.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, PHP

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.