mdr/scalariform — Issue #37: more varieties of alignment
Author: paulp
Created: 2011-10-27 23:02:04+00:00
State: open

Or failing that, some variety of alignment preservation, because I can't use it if it stomps on the existing formatting. Example diffs of what I'm talking about, from what was there to what scalariform left in its stead:

- var tree: Tree = _ // Tree associated with this context
- var owner: Symbol = NoSymbol // The current owner
- var scope: Scope = _ // The current scope
- var outer: Context = _ // The next outer context
- var enclClass: Context = _ // The next outer context whose tree is a
- // template or package definition
- var enclMethod: Context = _ // The next outer context whose tree is a method
- var variance: Int = _ // Variance relative to enclosing class
+ var tree: Tree = _ // Tree associated with this context
+ var owner: Symbol = NoSymbol // The current owner
+ var scope: Scope = _ // The current scope
+ var outer: Context = _ // The next outer context
+ var enclClass: Context = _ // The next outer context whose tree is a
+ // template or package definition
+ var enclMethod: Context = _ // The next outer context whose tree is a method
+ var variance: Int = _ // Variance relative to enclosing class

- "sym.ownerChain" -> sym.ownerChain,
- "underlyingSymbol(sym)" -> underlyingSymbol(sym),
- "pre" -> pre,
- "site" -> site,
- "tree" -> tree,
+ "sym.ownerChain" -> sym.ownerChain,
+ "underlyingSymbol(sym)" -> underlyingSymbol(sym),
+ "pre" -> pre,
+ "site" -> site,
+ "tree" -> tree,