Syntax coloring for html was working because calling g.importFromPath
to open leo/modes/html.py was actually returning Python's html module!

The fix is to have g.importFromPath always do a full import, rather
than looking in sys.modules first.  You could call this an important
change, so please use caution.

This bug has been around for a long time, it appears.  Somehow nobody
has reported problems with html syntax coloring.  How can that be?

Anyway, I also fixed another bug related to syntax coloring: the
colorer now lowers tag names passed in by the mode files, so "MARKUP"
is equivalent to "markup".

I believe there is at least one colorizing bug remaining:  we would
like to be able to specify ruleset-specific colors, like this::

   @color html::tags_markup_color = blue

Here html::tags is a "ruleset" defined in leo\modes\html.

At present, this doesn't work.  It's an oversight, you could say.  It
will be tricky to fix.  It's on the list.  I gather there is no rush,
though ;-)

Edward

-- 
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