Thanks for the useful plugin, I've made a small tweak to stop the $ being added inside of comments. This works for both single and multiple line comments.
do not add dollar inside comments
fixed bug in comment checking caused by in_list() returning True if t…
…he list is empty
simplified comment regexp
don't add dollar outside of php segments
I've also now stopped $ being added outside of the <? ?> context.
@graarh merge this PR please.