Hello,
I just stumbled on this while using ada-mode 5.0.1 on a newly created,
empty source file.
$ touch flightlist_display-menu_callbacks-select_npercent_dialog.ads
In emacs, visit the new file.
First of all, one word "header" appears in the file. I don't know
what in emacs added this word. But that's not a big problem, undo
will remove this word. Now type:
private package
Flightlist_Display.Menu_Callbacks.Select_Npercent_Dialog is
Before you type RET, do C-c C-f; the message minibuffer says "parse
succeeded". Now type RET then C-c C-f again. The minibuffer says:
flightlist_display-menu_callbacks-select_npercent_dialog.ads:2:0: \
syntax error in grammar state 161; unexpected , expecting one of \
(default END PRIVATE USE SUBTYPE PRAGMA NOT OVERRIDING FUNCTION \
PROCEDURE ENTRY FOR IDENTIFIER TYPE GENERIC PROTECTED TASK PACKAGE)
(This error message is repeated two times and also appears in the
*Messages* buffer. Did the parser find an unexpected whitespace
character or an unexpected comma, which appears nowhere in the
source?)
The parsing continues to fail after that, so auto-indentation does
not work at all on anything I type after the package name...
I don't know whether the parser will look at parent units when parsing
a private child. In case it does, it might be relevant that the
parent unit, package Flightlist_Display.Menu_Callbacks, is nested in
package Flightlist_Display and has a separate body. Possibly this is
what throws the parser off-guard?
--
Ludovic Brenta.
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org