mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
finished moving over string and regex interpolation to use '#' instead of '$', Issue #544
This commit is contained in:
@@ -566,7 +566,7 @@ exports.RangeNode = class RangeNode extends BaseNode
|
||||
step = del o, 'step'
|
||||
step and= "#idx += #{step.compile(o)}"
|
||||
if from <= to
|
||||
"#idx = #from; #idx <#@equals #to; #{step or "$idx++"}"
|
||||
"#idx = #from; #idx <#@equals #to; #{step or "#idx++"}"
|
||||
else
|
||||
"#idx = #from; #idx >#@equals #to; #{step or "#idx--"}"
|
||||
|
||||
@@ -1536,6 +1536,6 @@ literal = (name) ->
|
||||
|
||||
# Helper for ensuring that utility functions are assigned at the top level.
|
||||
utility = (name) ->
|
||||
ref = "__$name"
|
||||
ref = "__#name"
|
||||
Scope.root.assign ref, UTILITIES[name]
|
||||
ref
|
||||
|
||||
Reference in New Issue
Block a user