summaryrefslogtreecommitdiff
path: root/scss/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formatsAkihiro Motoki2021-03-083-14/+20
| | | | | | | | | | | | | | | | | | | We see the following warning when scss is used with python 3.8. scss/compiler.py:359: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents): This warning was introduced by https://bugs.python.org/issue36381 to warn about an upcoming Python C API change. The meaning of PY_SSIZE_T_CLEAN is described in https://python.readthedocs.io/en/stable/c-api/arg.html#strings-and-buffers. What we need to do are: * find all usages of PyArg_Parse with # formats and related functions. Ensure that the type of the length argument is a Py_ssize_t. * Add #define PY_SSIZE_T_CLEAN above the #include <Python.h>. Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
* Fixed compile error with msvc see #396js2020-03-271-1/+1
|
* Revert "Let the speedup block locator complain about surplus closing"Ivan Kolodyazhny2020-03-211-6/+0
| | | | | | | | | | Commit 4cf0cb606ad32a04774a0a3ca9186e238bf61c1f adds some backward-incompatible changes to pyScss: not it fails on a valid sass/scss filed. It means that Python and C implementation of parsers are different. This patch reverts the commit mentioned above to have the same functionality between Python and C implementations.
* Fix unused variableGermán Méndez Bravo2018-08-231-3/+3
|
* Fix guarded statementGermán Méndez Bravo2018-08-231-1/+2
|
* Let the speedup block locator complain about surplus closing braces.Martin Natano2016-09-291-0/+6
| | | | | | | | | This brings the behaviour of the speedup module more in line with the behaviour of the locate_block() function as implemented in python. e.g. try: $ echo 'a{}}' | pyscss
* murmurhash3 with C90 compatibilityGerman M. Bravo2014-09-221-4/+7
|
* Number of starting blocks increased (particularly for tokens)German M. Bravo2014-09-221-2/+2
|
* Using hashtables as cached restriction setsGerman M. Bravo2014-09-225-97/+108
|
* Added hashtableGerman M. Bravo2014-09-226-57/+280
|
* Removed leftover call to Pattern_regex() in Scanner_token which made it slowerGerman M. Bravo2014-09-191-2/+0
|
* Speedups builder fixes speedup building pathGerman M. Bravo2014-09-181-2/+5
|
* Fixed compiler warningsGerman M. Bravo2014-09-182-4/+2
|
* build.py restored (used internally to build speedups)German M. Bravo2014-09-181-0/+26
|
* Delete a big ol block of commented-out scanner code.Eevee (Alex Munroe)2014-09-021-62/+0
|
* Make scanner errors slightly more friendly to read.Eevee (Alex Munroe)2014-09-022-19/+18
|
* Make the C block locator aware of escape sequences.Eevee (Alex Munroe)2014-08-291-5/+10
|
* Remove extraneous Pattern_setup function from speedups.Eevee (Alex Munroe)2014-08-291-25/+12
|
* Remove #define DEBUG, oops.Eevee (Alex Munroe)2014-08-291-1/+0
|
* Several vast improvements to string parsing.Eevee (Alex Munroe)2014-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | - 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
* Remove some old Python that I don't think is useful any more...?Eevee (Alex Munroe)2014-08-293-860/+0
|
* Move ALL the parsing stuff under scss/grammar/.Eevee (Alex Munroe)2014-08-296-1419/+4
| | | | | | | | | Also, in the same vein as Python 3's approach, simply importing from the "native" module will automatically produce the sped-up versions if available. Conflicts: scss/compiler.py
* Break the AST and grammar into their own modules.Eevee (Alex Munroe)2014-08-292-12/+34
| | | | | Conflicts: scss/expression.py
* Fix reporting of block locator errors.Eevee (Alex Munroe)2014-08-291-1/+1
|
* Partial support for slurpy named arguments.Eevee (Alex Munroe)2014-08-261-2/+2
|
* Fix teeny oversight in the C block locator's Unicode handling.Eevee (Alex Munroe)2014-08-241-2/+2
|
* Urls could contain variables and other things (at least consider urls which ↵German M. Bravo2014-07-231-1/+2
| | | | might contain variables)
* Grammar was using wrong (undefined) variable.German M. Bravo2014-07-231-2/+1
|
* Improved escaping/unescaping and dequoting of stringsGerman M. Bravo2014-07-231-8/+10
|
* At last, real parsing for url(). Partly. #192Eevee (Alex Munroe)2014-07-121-0/+15
|
* Recognize () as an empty list.Eevee (Alex Munroe)2014-07-121-1/+2
|
* Reformat the grammar.Eevee (Alex Munroe)2014-07-121-93/+109
|
* Speedups C code: spaces -> tabsGerman M. Bravo2014-06-032-2/+2
|
* Fix some declaration-after-statement gripes in the C.Eevee (Alex Munroe)2014-05-213-6/+13
|
* Return Unicode from the C scanner. More __future__.Eevee (Alex Munroe)2014-03-291-4/+16
| | | | Test suite now runs without any Unicode warnings.
* Remove the "thin ice" logic from the block locators.Eevee (Alex Munroe)2014-03-292-49/+2
| | | | | | | | | | It took some experimentation to figure out what this actually does. It parses "a,\nb\nc{...}" such that "a,\nb" is considered a separate block or property or whatever from "c{...}". I think this is left over from how xCSS treated blocks (with regexes!), but it looks outright wrong to me, since a CSS parser would treat that as equivalent to "a, b c {...}". So away it goes!
* Made the speedups module Unicode-aware!Eevee (Alex Munroe)2014-03-295-188/+143
| | | | | | | | As part of this, I also got to (had to) remove the inlining of line numbers into the source code delimited by NULs; instead, the scanner and its pending blocks now just track the current line number. Works on both 2 and 3, too.
* The C Extension should now compile under both Python 2 and 3.Aaron Jacobs2014-03-012-17/+114
| | | | Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
* Support bare "..." on mixins, to allow arbitrary var injection.Eevee (Alex Munroe)2013-09-261-0/+2
|
* At long last, kill ParserValue and most of the Color constructor.Eevee (Alex Munroe)2013-08-271-2/+2
|
* Parser support for slurpy arguments.Eevee (Alex Munroe)2013-08-231-10/+23
|
* Correctly support scanning zero-length strings.Eevee (Alex Munroe)2013-08-231-9/+7
|
* Improved errors returned from the scannerGerman M. Bravo2013-08-181-2/+2
|
* Parentheses for maps tooGerman M. Bravo2013-08-171-2/+2
|
* Removed legacy StringValue, ColorValue, *Value classesGerman M. Bravo2013-08-161-4/+4
|
* Maps can have literals as keys, they also take multiple optional commas ↵German M. Bravo2013-08-161-17/+30
| | | | (ignored). Grammar re-organized
* Merge branch 'experimental-maps'Eevee (Alex Munroe)2013-08-161-1/+18
|\ | | | | | | | | | | | | Conflicts: scss/expression.py scss/src/grammar/grammar.g scss/src/grammar/grammar.py
| * Remove the need for _rewind.Eevee (Alex Munroe)2013-08-152-19/+15
| |
| * Experimental first crack at maps support.Eevee (Alex Munroe)2013-08-152-24/+71
| |
* | Remove trailing Undefined argumentsGerman M. Bravo2013-08-161-1/+1
| |