chiark / gitweb /
el/dot-emacs.el (mdw-fontify-pythonic): Handle word boundaries better.
authorMark Wooding <mwooding@good.com>
Thu, 25 Oct 2012 11:37:11 +0000 (12:37 +0100)
committerMark Wooding <mwooding@good.com>
Thu, 25 Oct 2012 11:37:11 +0000 (12:37 +0100)
commit4b0371099c1ba64354db14c84b1f9595a3eee417
tree19fd3cf9783aceb43be11375ec3037a3d0bda10f
parent96f2d8b3774ab7fa07a42d2c42d6a690b74f4381
el/dot-emacs.el (mdw-fontify-pythonic): Handle word boundaries better.

For some reason, in squeeze's Emacs, underscores cause a break in the
middle of a token, and the individual pieces can be recognized as
keywords or numbers.  This is obviously wrong.  Fix it by using
different word-boundary regexp magic.

This doesn't seem to happen in wheezy's Emacs, but I don't think this
change will harm that.
el/dot-emacs.el