Menu

#311 PHP incorrectly finds classes in comments

open
nobody
None
5
2015-06-10
2011-03-17
No

Ctags for PHP detects nonexistent classes in comments. It appears that it detects any word following the word "class" as a class name, but if there is a comment in the file that mentions the word "class", it should ignore the comment.

Discussion

  • Anonymous

    Anonymous - 2013-01-26

    I'm seeing this also in SVN Revision 804 (December 2012), so it still isn't fixed.

     
  • lkraav

    lkraav - 2015-06-09

    +1, but I think this project is abandoned.

     
  • Masatake YAMATO

    Masatake YAMATO - 2015-06-10

    Could you try univerersal-ctags?
    https://github.com/universal-ctags/ctags

    If it is reproduced in u-ctags, could you open an issue at the project with a sample input?
    We would like to fix it.

     
  • lkraav

    lkraav - 2015-06-10

    Thanks for the pointer! I starred the repo and will let you know.

     
  • lkraav

    lkraav - 2015-06-10

    In the meanwhile, there are multiple .ctags configurations available on google search that fix the PHP regex.

     

Log in to post a comment.