Sha256: f3c590552c0318c2aa77bac757734248635cc7b8dfa18fd9a71030ab19de2fb4

Contents?: true

Size: 502 Bytes

Versions: 16

Compression:

Stored size: 502 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
  Redcar::AutoIndenter::IndentCommand.new.run
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
redcar-dev-0.12.17dev plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.16dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.15dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.14dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.13dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.12dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.11dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.10dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.9dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.8dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.7dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.6dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.4dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.3dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.1dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb
redcar-dev-0.12.0dev-java plugins/auto_indenter/features/step_definitions/indentation_steps.rb