Sorry, not got back to you - been tied up
just lately and have not managed to progress
I received your source files and together
with the language syntax specification got
some idea of the constructs and layout
involved. I concluded that the indentation
was non-trivial. The main reason is that
the indentation needs to be driven by
a look-back mechanism - something that
the 'indent' command does not cater for.
('C' indentation is built into the editor
but does perform look back which is why
it can cope with a multitude of complex
I discussed the issue further with Steve
and we determined that the limitations of
the current mechanism would not be
sufficient to get a reliable enough
indentation scheme running. The danger is
that the indentation would cause the user
more frustration than it not being present.
We have been mulling over the hilighting
and indentation for some time in an
attempt to provide a more powerful mechanism
that includes context sensitive indentation.
We started considering this when Detlef
suggested a scheme changing mechanism allowing
a jump in hilighting between different
languages within the same file. Our goal was
to also change the indentation scheme. To do
this then the indentation would have to be
based on a look-back mechanism. To date
we have not managed to come up with a
good processor efficient method of performing
this look back without impacting on the
performance of the editor. Steve did
prototype a hilighting method that
recorded the current context state in the
line nodes (the current thinking is that
we need to take the same approach for
indentation). The implementation did
work, but was computationally very processor
intensive especially when moving to the
end of the file as the full context of
the file has to be computed - this resulted
in long pauses as re-computation took place.
This was abandoned for a re-think - although
in light of the problems you have presented
us with then the case is now re-open.
That's the history and current status. I do
need to do some more work on the template
which I will try and complete. I'm abroad
for the whole of next week on business so
I'll not have time to address this until
I get back.
Rick Owen wrote:
> The syntax highlighting you gave me is working great. Have you had any more
> time to think about indenting, etc? Did you ever receive the sample files I
> Time is what keeps everything from happening at once.
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> This is an unmoderated list. JASSPA is not responsible for the content of
> any material posted to this list.
> To unsubscribe, send a mail message to
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/