is_js fix
This commit is contained in:
parent
c286fd929d
commit
bf3979f327
|
|
@ -961,7 +961,7 @@ Cola.Parser.prototype.statement = Cola.Parser.embed_tokens(function() {
|
||||||
return this.simple_statement();
|
return this.simple_statement();
|
||||||
|
|
||||||
case "name":
|
case "name":
|
||||||
if(Cola.is_token(this.peek(), "name")) return type = this.S.token.value, this.next(), tmp = this.var_(false, type), this.semicolon(), tmp;
|
if(!this.is_js && Cola.is_token(this.peek(), "name")) return type = this.S.token.value, this.next(), tmp = this.var_(false, type), this.semicolon(), tmp;
|
||||||
return Cola.is_token(this.peek(), "punc", ":")
|
return Cola.is_token(this.peek(), "punc", ":")
|
||||||
? this.labeled_statement()
|
? this.labeled_statement()
|
||||||
: this.simple_statement();
|
: this.simple_statement();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user