range comprehensions are working smooth
This commit is contained in:
parent
12859e575a
commit
c0f9058f15
|
@ -1125,7 +1125,7 @@
|
|||
this.name = __a[0];
|
||||
this.index = __a[1];
|
||||
}
|
||||
this.children = [this.body, this.source, this.filter];
|
||||
this.children = compact([this.body, this.source, this.filter]);
|
||||
return this;
|
||||
},
|
||||
top_sensitive: function top_sensitive() {
|
||||
|
|
|
@ -20,7 +20,7 @@ module CoffeeScript
|
|||
|
||||
# Tokens pairs that, in immediate succession, indicate an implicit call.
|
||||
IMPLICIT_FUNC = [:IDENTIFIER, :SUPER, ')', :CALL_END, ']', :INDEX_END]
|
||||
IMPLICIT_END = [:IF, :UNLESS, :FOR, :WHILE, "\n", :OUTDENT]
|
||||
IMPLICIT_END = [:IF, :UNLESS, :FOR, :WHILE, "\n", ';', :OUTDENT]
|
||||
IMPLICIT_CALL = [:IDENTIFIER, :NUMBER, :STRING, :JS, :REGEX, :NEW, :PARAM_START,
|
||||
:TRY, :DELETE, :TYPEOF, :SWITCH,
|
||||
:TRUE, :FALSE, :YES, :NO, :ON, :OFF, '!', '!!', :NOT,
|
||||
|
|
|
@ -883,7 +883,7 @@ ForNode: exports.ForNode: inherit Node, {
|
|||
@step: source.step
|
||||
@object: !!source.object
|
||||
[@name, @index]: [@index, @name] if @object
|
||||
@children: [@body, @source, @filter]
|
||||
@children: compact [@body, @source, @filter]
|
||||
this
|
||||
|
||||
top_sensitive: ->
|
||||
|
|
Loading…
Reference in New Issue