diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-10-07 09:55:22 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-10-07 09:55:22 -0500 |
commit | 10c79d6f3e9dd586da907c4c288b7a06cc500abc (patch) | |
tree | db598f59a8b9715d4e03f495026f52e0ff1784ef | |
parent | 2991818ae0209a2eeb37bc3f48b7385085a321dc (diff) | |
download | pyscss-10c79d6f3e9dd586da907c4c288b7a06cc500abc.tar.gz |
Keep block's parent rule's source_file
-rw-r--r-- | scss/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scss/__init__.py b/scss/__init__.py index 09a8135..6afa85c 100644 --- a/scss/__init__.py +++ b/scss/__init__.py @@ -699,7 +699,7 @@ class Scss(object): # TODO correct? relevant? seems the function should # consider itself as existing where it was defined, not # called? - source_file=rule.source_file, + source_file=block.parent_rule.source_file, import_key=rule.import_key, # TODO @@ -829,6 +829,7 @@ class Scss(object): _rule = rule.copy() _rule.unparsed_contents = m_codestr _rule.namespace = callee_namespace + _rule.source_file = block.parent_rule.source_file _rule.lineno = block.lineno _rule.options['@content'] = block.unparsed_contents |