title: 'Missing semicolon' warning in Eclipse for JavaScript code
body: <p>Eclipse gives me the warning 'Missing semicolon' for line 4 of the following code:</p>
  
  <pre><code>const C = 'b';
  function foo() {
      alert('x');
  }
  </code></pre>
  
  <p>It does not for the following code:</p>
  
  <pre><code>//const C = 'b';
  function foo() {
      alert('x');
  }
  </code></pre>
  
  <p>For the following it gives me two warnings:</p>
  
  <pre><code>const C = 'b';
  function foo() {
      alert('x');
  };
  </code></pre>
  
  <p>Multiple markers at this line</p>
  
  <ul>
  <li>Unnecessary semicolon</li>
  <li>Missing semicolon</li>
  </ul>
  
  <p>Is there a way to make Eclipse ignore my lines with 'const'? Or is there another way to solve my problem?</p>
  
  <p>I am using:</p>
  
  <p>Eclipse IDE for JavaScript Web Developers. <br/>
  Version: Indigo Service Release 1 <br/>
  Build id: 20110916-0149</p>