Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #307 from Yakindu/issue_298
Browse files Browse the repository at this point in the history
Issue 298
  • Loading branch information
flantony authored Aug 22, 2019
2 parents 5b29013 + 1ef3aa3 commit adc84e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ class SolidityFormatter extends AbstractFormatter2 {
}

def dispatch void format(PragmaDirective it, extension IFormattableDocument document) {
prepend[noSpace]
append[newLines(1, 1, 1); priority = IHiddenRegionFormatter.LOW_PRIORITY;]
}

def dispatch void format(ImportDirective it, extension IFormattableDocument document) {
prepend[newLines]
}

def dispatch void format(ContractDefinition it, extension IFormattableDocument document) {
prepend[newLines(2, 3, 3)]
append[newLines(3, 3, 3); priority = IHiddenRegionFormatter.HIGH_PRIORITY;]
interior[indent]
regionFor.keywordPairs('{', '}').forEach [
key.append[newLine; priority = IHiddenRegionFormatter.LOW_PRIORITY;].prepend [
Expand Down

0 comments on commit adc84e6

Please sign in to comment.