Georg Bauhaus <[email protected]> writes:

> Hi,,
>
> On input of 
>
> package P is
>
>     type S is synchronized interface;
>
>     task type T is new S with
>
>     end T;
>
> end P;
>
> the parser fails, the message being
> wisi-containing-action: containing-token 'with' has no cache. grammar
> error; missing action
>
> C-c C-f moves point to after "end" before "P;".
> Mode version 5.1.8 on Emacs 24.5.1.
>
> I couldn't find a definition in the grammar that agrees
> with this error at the level of tokens, so I don't know
> what is going on.

It's from `task_type_declaration'. The colorization is also off; that's
also in the grammar. Here's a patch:

============================================================
--- ada-grammar.wy      d798b9a3681dfe89f91b75f06aa95e680009c57d
+++ ada-grammar.wy      02e9e54a694d18df51da1bbe1ab1c4517cc7c2fd
@@ -1,6 +1,6 @@
 ;;; Wisi grammar for Ada
 ;;
-;; Copyright (C) 2012 - 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2012 - 2016 Free Software Foundation, Inc.
 ;;
 ;; Author: Stephen Leake <[email protected]>
 ;; Maintainer: Stephen Leake <[email protected]>
@@ -2342,10 +2342,10 @@ task_type_declaration
   : TASK TYPE IDENTIFIER discriminant_part_opt aspect_specification_opt IS NEW 
interface_list WITH task_definition
     SEMICOLON
     (progn
-      (wisi-statement-action [1 statement-start 3 name 10 statement-other 11 
statement-end])
+      (wisi-statement-action [1 statement-start 3 name 9 statement-other 10 
statement-other 11 statement-end])
       (wisi-containing-action 3 5)
       (wisi-containing-action 9 10)
-      (wisi-face-action [2 font-lock-type-face]))
+      (wisi-face-action [3 font-lock-type-face]))
   | TASK TYPE IDENTIFIER discriminant_part_opt aspect_specification_opt IS 
task_definition SEMICOLON
     (progn
       (wisi-statement-action [1 statement-start 3 name 6 block-start 8 
statement-end])
-- 
-- Stephe

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

Reply via email to