finished moving over string and regex interpolation to use '#' instead of '$', Issue #544

This commit is contained in:
Jeremy Ashkenas
2010-07-26 23:31:55 -04:00
parent d624310be1
commit 89cd25ab15
9 changed files with 45 additions and 50 deletions

View File

@@ -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