summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2014-09-08 18:24:19 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2014-09-08 18:24:19 -0700
commitd1a5e27c5e01e5a7d6c0df8a5a4a828459dbcb39 (patch)
tree983d2772bc1f5b9629d101fc25a6ab35e922c122
parente9e25b7de9cbf329abadd0f65b3d5a2b484f74b0 (diff)
downloadpyscss-d1a5e27c5e01e5a7d6c0df8a5a4a828459dbcb39.tar.gz
Clarify that this argument passing behavior is not a deviation.
-rw-r--r--scss/compiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/compiler.py b/scss/compiler.py
index 258a54b..8e5016c 100644
--- a/scss/compiler.py
+++ b/scss/compiler.py
@@ -594,9 +594,9 @@ class Compilation(object):
# Try keyword arguments
value = kwargs.pop(var_name)
elif node is not None:
- # OK, there's a default argument; try that
- # DEVIATION: this allows argument defaults to refer to earlier
- # argument values
+ # OK, try the default argument. Using callee_calculator means
+ # that default values of arguments can refer to earlier
+ # arguments' values; yes, that is how Sass works.
value = node.evaluate(callee_calculator, divide=True)
else:
# TODO this should raise