Commit 5554057e authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* reduce duplication by relying on super for indentation-based package rule

parent 39fad8dd
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -4,18 +4,11 @@ grammar org.etsi.mts.tdl.TDLtxi with org.etsi.mts.tdl.TDLtx
import "http://www.etsi.org/spec/TDL/1.3.1/configurations" 
import "http://www.etsi.org/spec/TDL/1.4.1" as tdl
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
import "http://www.etsi.org/spec/TDL/1.3.1/structured" as structuredobjectives
import "http://www.etsi.org/spec/TDL/1.3.1/structured" as to

@Override
Package returns tdl::Package:
    AnnotationFragment
    'Package' name=Identifier
    BEGIN
        (^import+=ElementImport)*
        (packagedElement+=PackageableElement)*
        (nestedPackage+=Package)*
    END
    WithCommentFragment?
    super
;

//Retain Braces even in indentation-based