Stephen Leake <[email protected]> writes:

> Georg Bauhaus <[email protected]> writes:
>
>> On 09.09.13 11:51, Georg Bauhaus wrote:
>>
>>> Does not work for me right now,
>>> something is broken here. Pressing
>>> tab always removes all indentation.
>>> 
>> Example. the package body is indented once the syntax
>> is complete and correct, the spec isn't:
>>
>> package Tasks is
>>
>> type T is null record;
>>
>> protected type P is
>> entry Foo;
>> end P;
>>
>> end Tasks;
>
> This is because the parse is failing. It fails silently, to be less
> annoying while you are typing new code.
>
> To see why the parse is failing, select "Ada Mode | Toggle show parser
> errors" from the menu. Let me know if the compiler disagrees :).

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.

-- 
-- Stephe

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

Reply via email to