Ludovic Brenta <[email protected]> writes:

> Hello,
>
> In ada-mode 5.1.6 I have just encountered a parse error on this:
>
> package P is
> private
>    type Opaque_T (A, B : Boolean := False); -- line 3
>    type T is access Opaque_T;
> end P;
>
> M-x wisi-show-parse-error says:
> p.ads:3:43: syntax error in grammar state 586; unexpected ;, expecting
> one of (default IS)
>
> I don't recall this being reported here before.

Stupid bug; here's a patch:

#
# old_revision [c3a0dfceded481c91ef52154f888b19aea06d3c8]
#
# patch "ada-grammar.wy"
#  from [6871c45f20570b4c99f636fe2eff4a2b96ff794e]
#    to [b16fc010d94708702d4600cdd92e3ee6377fbce9]
#
============================================================
--- ada-grammar.wy      6871c45f20570b4c99f636fe2eff4a2b96ff794e
+++ ada-grammar.wy      b16fc010d94708702d4600cdd92e3ee6377fbce9
@@ -1312,7 +1312,7 @@ incomplete_type_declaration
       (wisi-statement-action [1 statement-start 2 name 6 statement-end])
       (wisi-containing-action 1 3)
       (wisi-face-action [2 font-lock-type-face]))
-  | TYPE IDENTIFIER SEMICOLON
+  | TYPE IDENTIFIER discriminant_part_opt SEMICOLON
     (progn
       (wisi-statement-action [1 statement-start 2 name 3 statement-end])
       (wisi-face-action [2 font-lock-type-face]))

You'll have to regenerate ada-grammar-wy.el; the diff for that is large,
and mtn won't generate it for me (I have mtn:manual-merge set to true, to
simplify conflict resolutions). But I can work around that and post it
if you want.

I'll try to get a new release out this week.

-- 
-- Stephe

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

Reply via email to