#19 vim: error identifying tag in assignment

closed-fixed
nobody
None
5
2001-12-13
2001-11-30
Anonymous
No

Create a file x.vim containing only this line:
let y=":x"

Now run ctags. The tags file is wrong.

The found tag is "x" (the character after the colon).

let y="a:test" -> tag "test"
let y="a:b:test" -> tag "b"

How I found it:
I have a file containing a line like this:
let &errorformat="%A%.%#rror reported by parser: %m"

Here ctags identified the tag " " (space), which
is also the char behind the colon. Then this entry is sorted to the top of the tags file (even before the comments).

Version: Exuberant Ctags 5.1

CU, Ralf

PS: Ctags is a GREAT tool!!

Discussion

  • Ralf
    Ralf
    2001-11-30

    Logged In: YES
    user_id=383599

    Bug report submitted by: rakus at users.sourceforge.net

     
  • Darren Hiebert
    Darren Hiebert
    2001-12-13

    Patch fixing Bug #487608

     
    Attachments
  • Darren Hiebert
    Darren Hiebert
    2001-12-13

    Logged In: YES
    user_id=38016

    Fixed for upcoming release by attached patch.

     
  • Darren Hiebert
    Darren Hiebert
    2001-12-13

    • status: open --> closed-fixed