Consider body text such as:

QQQ
@language rest

Some reStructuredText text.

@language python
QQQ

This is supposed to color the text as reStructuredText *without*
changing the language in effect in descendant nodes. The bug caused
Leo to incrementally color "Some reStructuredText using the *python*
language.

Here, a tiny performance improvement would be to do this:

QQQ
@language python
@language rest

Some reStructuredText text.
QQQ

Edward

P.S. The fix involves calculating the @language directive in effect
based on the cursor position of the body text.  It's surprisingly easy
to do.

P.P.S. A similar bug afflicts the add-comments command.  I'll fix that
bug next.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to