title: Symfony2 routing unsupported keys
body: <p>I'm learning Symfony 2 but I have some problems. Using a tutorial, I created this route in the <code>routing.yml</code> inside bundle:</p>
  
  <pre><code>acme_demo_homepage:
  path:     /hello/{name}
  defaults: { _controller: AcmeDemoBundle:Default:index }
  
  random:
  path:     /random/{limit}
  defaults: { _controller: AcmeDemoBundle:Random:index }
  </code></pre>
  
  <p>and Eclipse shows me an error at line where <code>defaults</code> is declared and tells me that <code>:</code> is unexpected.</p>
  
  <p>I have created the controller:</p>
  
  <pre><code>&lt;?php
  namespace Acme\DemoBundle\Controller;
  use Symfony\Component\HttpFoundation\Response;
  
  class RandomController
  {
  
  
  public function indexAction($limit)
  {
      return new Response('&lt;html&gt;&lt;body&gt;Number: '.rand(1, $limit).'&lt;/body&gt;&lt;/html&gt;');
  }
  
  }
  </code></pre>
  
  <p>but when I try to execute <code>localhost/app_dev.php/random/10</code> this error appears:</p>
  
  <blockquote>
    <p>The routing file "C:\xampp\htdocs\progetti\Symfony\src\Acme\DemoBundle/Resources/config/routing.yml" contains unsupported keys for "acme_demo_homepage": "random". Expected one of: "resource", "type", "prefix", "pattern", "path", "host", "schemes", "methods", "defaults", "requirements", "options", "condition".</p>
  </blockquote>