But what about existing tag files for java script?
I would maybe just keep it unhandled - this bug has been there for some time already and nobody has noticed. In addition, I think PHP parser also generates anonymous tags (they just aren't captured by our unit tests) and we didn't detect them either.
I think I can go with that. What happens if we read such tag files? Some symbols might not be marked as anonymous, anything else?