| commit | b954bbfa14bfc48e682ef337b2955f9e385d9a88 | [log] [tgz] |
|---|---|---|
| author | Ed Willink <ed@willink.me.uk> | Sat Oct 10 12:12:40 2020 +0100 |
| committer | Ed Willink <ed@willink.me.uk> | Sat Oct 10 12:12:40 2020 +0100 |
| tree | 2b71f36f46a2a58910c38854e55005de42a8c324 | |
| parent | 3d1f64eae415d92501881d55dadd806dc8bebd1f [diff] |
Use pre/post-comment
diff --git a/examples/org.eclipse.ocl.examples.xtext.idioms/src/org/eclipse/ocl/examples/xtext/idioms/Idioms.idioms b/examples/org.eclipse.ocl.examples.xtext.idioms/src/org/eclipse/ocl/examples/xtext/idioms/Idioms.idioms index 9c6d1bd..2cc38ed 100644 --- a/examples/org.eclipse.ocl.examples.xtext.idioms/src/org/eclipse/ocl/examples/xtext/idioms/Idioms.idioms +++ b/examples/org.eclipse.ocl.examples.xtext.idioms/src/org/eclipse/ocl/examples/xtext/idioms/Idioms.idioms
@@ -11,10 +11,7 @@ model Idioms import "platform:/resource/org.eclipse.ocl.examples.xtext.idioms/model/Idioms.ecore#/" as idioms -segment PRE_COMMENT custom "org.eclipse.ocl.examples.xtext.idioms.serializer.XtextPreCommentSegmentSupport"; -segment POST_COMMENT custom "org.eclipse.ocl.examples.xtext.idioms.serializer.XtextPostCommentSegmentSupport"; - -mixin idiom COMMENTS at final do PRE_COMMENT value POST_COMMENT; +mixin idiom COMMENTS at final do pre-comment value post-comment; idiom BRACES { at "{" do soft-space value push soft-new-line;