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

Version Path
redcar-0.13 plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.5dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.4dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.3dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.2dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.1dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-0.12.1 plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.13.0dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-0.12 plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.27dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.26dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.25dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.24dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.23dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.22dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.21dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.20dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.19dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.18dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb