Ohcount does this (http://labs.ohloh.net). It's open source so you can contribute to it if you like.
I implemented this over the summer; it appears to work fine for me, what seems to be the problem?
Feel free to write and submit a parser for it. It's much easier now!
That's what @enqueue and @commit are for.
The statement is not definitive, so I don't see what is wrong with it. Care to suggest an alternative comment?
I've called the language 'tag'. If it was C, then the line would be c_line; Ruby would be ruby_line, etc.
I would pursue the solution given by Adrian on the Ragel mailing list though.
Robin, glad to hear you're implementing a framework rather than my quick hack for Mercurial support :)