Ludovic Brenta <[email protected]> writes:

> Using ada-mode 5.1.1 and wisi 1.0.2 from ELPA on GNU emacs 24.3.1.
>
> The wisi parser fails to parse the following legal code:
>
>   function Symbol (IFPS_Result : in
> CWIR_Utilities.IFPS_What_If_Result_T) return String is
>   (case IFPS_Result is
>   when CWIR_Utilities.OK_With_IFPS
> => "Ok ",
>   when CWIR_Utilities.Error_Detected_By_Local_IFPS |
> CWIR_Utilities.Error_Detected_By_Remote_IFPS => "Err",
>   when CWIR_Utilities.Communication_Error |
> CWIR_Utilities.Unexpected_Result                      => "Unk");

This is an 'expression_function_declaration', which is commented out in
the Ada mode grammar.

I'll look at it. I'm in the middle of releasing 5.1.3 (apparently I
never actually pushed 5.1.2 to the ELPA git repository), so it may not
get into that.

> Thanks for maintaining ada-mode!

You're welcome. Always good to hear from users :).

On a side note, I am beginning to notice that Ada mode is noticably slow
on some files, not always very large ones. So I'll be looking into the
possibility of caching the parser state at various points in the file,
so only the code past the edit needs to be reparsed, and hopefully not
even that if the change is truly local.

-- 
-- Stephe

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

Reply via email to