Commit a3603c47 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ formatting refinements

parent fe621c10
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -71,11 +71,6 @@ class TDLan2Formatter extends AbstractFormatter2 {
	    p.allRegionsFor.keyword(',').prepend[noSpace]
	    p.append[newLine]
	    
	    interior(
       		p.regionFor.keyword('{').append[newLine],
        	p.regionFor.keyword('}').prepend[newLine],
        	[indent]
    	)

        if (p instanceof StructuredDataType) {
//            interior(p, [indent]) 
@@ -90,11 +85,23 @@ class TDLan2Formatter extends AbstractFormatter2 {
                m.prepend[newLine]
                m.format
            }          
        } else {
    	    interior(
           		p.regionFor.keyword('{').append[newLine],
            	p.regionFor.keyword('}').prepend[newLine],
            	[indent]
        	)
        } 
        for (Comment comment : p.getComment()) {
            comment.surround[newLine]
            comment.surround[indent]
            comment.format;
        }
        for (Annotation a : p.getAnnotation()) {
            a.surround[newLine]
            a.surround[indent]
            a.format;
        }

	}