php - Tell Ctags not to parse content inside comments -


when generate ctags file, seems parsing content inside comments too. instance, using vim's plugin tagbar, can see in list of functions non-existent functions such as:

  • is
  • in
  • just

what happening here ctags going comments , finding things like:

"this function is...", thinking "is" function, adding entry in tags file.

i wondering if there easy way tell ctags not parse contents inside comments.

i have found apparently there fix this released after 5.8.0 not sure whether has been released or not, ctags version 5.8.0.

this related php project guess nice if answer can cover solution work programming language (if such thing possible).

example:

the following comment function generates tag "is" , lists function:

/**  * function run set preferences  */ 

there's bug in ctags 5.8. fortunately, 1 day after released, jafl committed revision 729 fix problem. unfortunately, there has not been release since then.

fortunately, project has been forked "universal ctags." here's how install source.

# rid of 5.8. sudo apt-get remove exuberant-ctags  # autoconf needed assemble configure files sudo apt-get install autoconf autoconf-doc  git clone https://github.com/universal-ctags/ctags.git universal-ctags  cd universal-ctags  ./autogen.sh ./configure make  sudo make install 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -