Georg Bauhaus <[email protected]> writes:

> Am 09.09.2013 um 16:12 schrieb Stephen Leake:
>> 
>> I'm planning to loosen some of the syntax requirements, so the parse
>> fails less often. For example, allowing this:
>> 
>> if then
>> else
>> end if;
>> 
>> with empty expression and sequence_of_statements, since they don't
>> affect indentation or navigation in this statement.
>> 
>> Let me know of other restrictions that might be easy to relax.
>
> Whenever a user starts a new compilation unit, he or she is likely
> going to start writing context clauses. After each context clause,
> however, typing RETURN triggers a syntax error, since the list of
> expected tokens does not include the end of input (or just comments).
> (Only knowledge of "C-q C-j" or similar will allow moving on
> to the next line.)
>
> Can this be changed, if only to allow moving point?
> For example, be lenient if the next token(s) indicate the end
> of a surrounding "bracket".

I'll add it to the list; that's in the same flavor of "make everything
optionally empty".

One solution to this is a good template/skeleton package; it would
insert complete legal syntax, then you modify it.

Do you have a recommendation for such a package? Emacs has skeleton.el;
I'll look into that. I have prefered Else, but that's not maintained,
and is a bit broken.

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to