Sha256: aec11b2fc26e4e2e65553a9ea28a003a3ef9f6388f244c83296026d6ea2783d0
Contents?: true
Size: 529 Bytes
Versions: 19
Compression:
Stored size: 529 Bytes
Contents
Given /^the indentation rules are like Ruby's$/ do Redcar::AutoIndenter.test_rules = Redcar::AutoIndenter::Rules.new(/def/, /end/) end Given /^the indentation rules are like Java's$/ do Redcar::AutoIndenter.test_rules = Redcar::AutoIndenter::Rules.new( /^.*\{[^}"']*$|^\s*(public|private|protected):\s*$/, /^(.*\*\/)?\s*\}([^}{"']*\{)?[;\s]*(\/\/.*|\/\*.*\*\/\s*)?$|^\s*(public|private|protected):\s*$/ ) end When /^I auto-indent/ do Swt.sync_exec do Redcar::AutoIndenter::IndentCommand.new.run end end
Version data entries
19 entries across 19 versions & 2 rubygems