This change allows “package Compiler renames Foo.Compiler;”.
diff -r 52f712b55778 gpr-grammar.wy
--- a/gpr-grammar.wy Sun Apr 26 08:55:52 2015 +0100
+++ b/gpr-grammar.wy Sun Apr 26 09:02:39 2015 +0100
@@ -89,6 +89,7 @@
%keyword OTHERS "others"
%keyword PACKAGE "package"
%keyword PROJECT "project"
+%keyword RENAMES "renames"
%keyword RIGHT_PAREN ")"
%keyword STANDARD "standard"
%keyword TYPE "type"
@@ -238,7 +239,7 @@
;; (info "(gnat_ugn)Packages")
package_declaration
: package_spec
- ;; | package_renaming
+ | package_renaming
;; | package_extension
;
@@ -256,6 +257,13 @@
;; {simple_declarative_item}
;; end package_identifier ;
+package_renaming
+ : PACKAGE identifier_opt RENAMES IDENTIFIER DOT IDENTIFIER SEMICOLON
+ (progn
+ (wisi-statement-action [1 statement-start 3 statement-other 7
statement-end])
+ (wisi-containing-action 3 4))
+ ;
+
;; (info "(gnat_ugn)Qualified Projects")
project_qualifier_opt
: ;; empty
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org