Georg Bauhaus <[email protected]> writes:

> When I load the file listed below (4 lines), parsing is successful
> at first. (C-c C-f says “parse succeeded”.) 

This should say "parse not yet attempted"; no parsing is done until it
is needed (which can happen in the background for font-lock).

I'm not sure that's worth fixing.

> gen_pak.ads:4:7: wisi-containing-action: containing-token 'nil' has no
> cache. grammar error; missing action
>
> with Ada.Numerics.Generic_Elementary_Functions;
> generic
>    with package G is new Ada.Numerics.Generic_Elementary_Functions (<>);
> package Gen_Pak is end Gen_Pak;

I just ran across the same bug.

Here's a patch:

============================================================
--- ada-grammar.wy
+++ ada-grammar.wy
@@ -1042,7 +1042,7 @@ formal_package_declaration
 formal_package_declaration
   : WITH PACKAGE name IS NEW name formal_package_actual_part 
aspect_specification_opt SEMICOLON
     (progn
-      (wisi-statement-action 1 'statement-start 5 'statement-other 9 
'statement-end)
+      (wisi-statement-action 1 'statement-start 5 'statement-other 6 'name 7 
'statement-other 8 'statement-other 9 'statement-end)
       (wisi-containing-action 1 3)
       (wisi-containing-action 5 6)
       (wisi-containing-action 6 7)
============================================================

It will be in 5.1.4, to be release around 17 May.

-- 
-- Stephe

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

Reply via email to