https://bugs.launchpad.net/ubuntu/+source/vim/+bug/494124
m[foobar$]
m#foobar$#
will higlight $] and $# as a variable. The real impact is that it doesn't perceive the regex as terminated, and highlight the rest of the document accordingly, until it reach a suitable delimiter.
I use Ubuntu 9.10 netbook remix
Vim : VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 21 2009 11:22:49)
Included patches: 1-245