From: Stefan M. <sm...@oe...> - 2007-02-08 20:43:09
|
Hi! I did some changes to the font-lock-mode part in ``rst.el``: * ``#`` recognized as valid symbol for starting an enumerated list item * ``abc-def_`` recognized as valid hyperlink reference So far the ``-`` stopped recognition but reStructuredText syntax allows it. * No more "Stack overflow in regexp matcher" There were a couple of regular expressions which skipped over the end of the line by using inverted character classes. This has been fixed everywhere. I created a patch against a version of ``rst.el`` some days ago. See attachment. May be someone can add this to the repo. There is also one clash of changes. (set (make-local-variable 'comment-start) ".. ") was in ``rst-mode`` while Martin(?) moved this definition to another function defining the key bindings which is not called automatically. I think it makes sense to consider key bindings as optional for a mode and thus it makes sense to move them to a separate function. But comment definition are not optional IMO. I just want to do ``M-#`` as in every other mode and this needs ``comment-start`` defined. Thus I didn't apply this particular patch. Mit Freien Gr=FC=DFen Stefan -- Please note this message is written on an offline laptop and send out in the evening of the day it is written. It does not take any information into account which may have reached my mailbox since yesterday evening. |