Running GNU Emacs 22.2.1 on Ubuntu 9.04.
When editing python code in emacs, if a docstring contains an apostrophe, emacs highlights all following code as a comment, until another apostrophe is used. Really annoying!
In other words, if I have a docstring like this:
''' This docstring has an apostrophe ' '''
Then all following code is highlighted as a comment. Comments are highlighted as code.
I can escape the docstring to avoid this, like this:
''' This docstring has an escaped apostrophe \' '''
Then highlighting is fine, but then it looks funny and unnecessary to other devs on my team, and I get made fun of for using emacs since " it can't handle apostrophies". ;)
So, anyone know how to make emacs behave better in this regard?
Thanks,
Josh