On 5/3/10 9:56 PM, Eric M. Ludlam wrote:
> As far as font lock is concerned, does python depend on font-lock to
> put text properties down before features like forward-sexp to work? This
> would be bad for the wisent parser to depend on, as font-lock is turned
> off during background parsing.
> The best bet is for wisent-python-forward-line to have some sort of
> custom 'forward-sexp', but I can imagine this being rather poor. MATLAB
> has similar syntax around quotes which prevents it from using partial
> sexp matching.
> If python does not depend on font-lock to add the feature you need,
> then having that single function just re-enable
> parse-sexp-lookup-properties seems like a fine thing to me.
> Does that help? Sorry for not having a straight answer.
It does help, thank you. Telling me not to depend on font-lock-mode to
parse Python syntax led to write a patch to wisent-python.el to avoid
using forward-sexp in favor of a function I created to skip over Python
strings correctly. I'm currently running with that patch. Once I have
some confidence that it's at least no worse than what was in there
before I'll clean it up and send it in.