diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-29 15:36:06 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-29 17:07:28 -0700 |
commit | 227ea22bb12c976aa6a59bf74084e181dee436f4 (patch) | |
tree | ef39587cebdb912cf3f6bd093f992c74cf456926 /scss/errors.py | |
parent | 45d3a91713e7a26050121f300d3ea2b93c7908d1 (diff) | |
download | pyscss-227ea22bb12c976aa6a59bf74084e181dee436f4.tar.gz |
Several vast improvements to string parsing.
- Interpolation is now understood by the parser! It works for
barewords, quoted strings, and both forms of URL.
- Escaped characters are now understood and translated by the parser as
well!
- Rendering strings to CSS attempts to escape them correctly, regardless
of how they were put together.
- The block locator (at least the Python version) is now a little more
aware of CSS escaping.
Unfortunately there are some problems with the C module in this commit,
which I will be promptly fixing.
Conflicts:
scss/blockast.py
Diffstat (limited to 'scss/errors.py')
-rw-r--r-- | scss/errors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/errors.py b/scss/errors.py index b1e7f12..8be3019 100644 --- a/scss/errors.py +++ b/scss/errors.py @@ -213,7 +213,7 @@ class SassParseError(SassError): def format_prefix(self): decorated_expr, line = add_error_marker(self.expression, self.expression_pos or -1) - return """Error parsing expression:\n{0}\n""".format(decorated_expr) + return """Error parsing expression at {1}:\n{0}\n""".format(decorated_expr, self.expression_pos) class SassEvaluationError(SassError): |