Hello, world

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");

ada-show-parse-error says:

cwir_display.adb:149:3: syntax error in grammar state 133; unexpected
(, expecting one of (default BEGIN USE SUBTYPE PRAGMA NOT OVERRIDING
FUNCTION PROCEDURE ENTRY FOR IDENTIFIER TYPE GENERIC PROTECTED TASK
PACKAGE)

The location line 149, column 3, corresponds to the "c" of "case".

The annoying part of this bug is that all source text after this point
gets flushed to the left :(

Thanks for maintaining ada-mode!

--
Ludovic Brenta.


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

Reply via email to