On Eclipse validator the keywords "finally" and "catch" seems not allowed:
$http.get(url)
.success(function (data) {
// Handle data
})
.error(function (data, status) {
// Handle HTTP error
})
.finally(function () {
// Execute logic independent of success/error
});
On line 8 (.finally...) the validator says "Syntax error on token "finally", Identifier expected". If I remove the finally block, the error disappears.
Is there a way to say eclipse that this is not an error without disabling the complete validation?
regards Bytecounter