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