Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats | Akihiro Motoki | 2021-03-08 | 3 | -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 #396 | js | 2020-03-27 | 1 | -1/+1 |
| | |||||
* | Revert "Let the speedup block locator complain about surplus closing" | Ivan Kolodyazhny | 2020-03-21 | 1 | -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 variable | Germán Méndez Bravo | 2018-08-23 | 1 | -3/+3 |
| | |||||
* | Fix guarded statement | Germán Méndez Bravo | 2018-08-23 | 1 | -1/+2 |
| | |||||
* | Let the speedup block locator complain about surplus closing braces. | Martin Natano | 2016-09-29 | 1 | -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 compatibility | German M. Bravo | 2014-09-22 | 1 | -4/+7 |
| | |||||
* | Number of starting blocks increased (particularly for tokens) | German M. Bravo | 2014-09-22 | 1 | -2/+2 |
| | |||||
* | Using hashtables as cached restriction sets | German M. Bravo | 2014-09-22 | 5 | -97/+108 |
| | |||||
* | Added hashtable | German M. Bravo | 2014-09-22 | 6 | -57/+280 |
| | |||||
* | Removed leftover call to Pattern_regex() in Scanner_token which made it slower | German M. Bravo | 2014-09-19 | 1 | -2/+0 |
| | |||||
* | Speedups builder fixes speedup building path | German M. Bravo | 2014-09-18 | 1 | -2/+5 |
| | |||||
* | Fixed compiler warnings | German M. Bravo | 2014-09-18 | 2 | -4/+2 |
| | |||||
* | build.py restored (used internally to build speedups) | German M. Bravo | 2014-09-18 | 1 | -0/+26 |
| | |||||
* | Delete a big ol block of commented-out scanner code. | Eevee (Alex Munroe) | 2014-09-02 | 1 | -62/+0 |
| | |||||
* | Make scanner errors slightly more friendly to read. | Eevee (Alex Munroe) | 2014-09-02 | 2 | -19/+18 |
| | |||||
* | Make the C block locator aware of escape sequences. | Eevee (Alex Munroe) | 2014-08-29 | 1 | -5/+10 |
| | |||||
* | Remove extraneous Pattern_setup function from speedups. | Eevee (Alex Munroe) | 2014-08-29 | 1 | -25/+12 |
| | |||||
* | Remove #define DEBUG, oops. | Eevee (Alex Munroe) | 2014-08-29 | 1 | -1/+0 |
| | |||||
* | Several vast improvements to string parsing. | Eevee (Alex Munroe) | 2014-08-29 | 1 | -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-29 | 3 | -860/+0 |
| | |||||
* | Move ALL the parsing stuff under scss/grammar/. | Eevee (Alex Munroe) | 2014-08-29 | 6 | -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-29 | 2 | -12/+34 |
| | | | | | Conflicts: scss/expression.py | ||||
* | Fix reporting of block locator errors. | Eevee (Alex Munroe) | 2014-08-29 | 1 | -1/+1 |
| | |||||
* | Partial support for slurpy named arguments. | Eevee (Alex Munroe) | 2014-08-26 | 1 | -2/+2 |
| | |||||
* | Fix teeny oversight in the C block locator's Unicode handling. | Eevee (Alex Munroe) | 2014-08-24 | 1 | -2/+2 |
| | |||||
* | Urls could contain variables and other things (at least consider urls which ↵ | German M. Bravo | 2014-07-23 | 1 | -1/+2 |
| | | | | might contain variables) | ||||
* | Grammar was using wrong (undefined) variable. | German M. Bravo | 2014-07-23 | 1 | -2/+1 |
| | |||||
* | Improved escaping/unescaping and dequoting of strings | German M. Bravo | 2014-07-23 | 1 | -8/+10 |
| | |||||
* | At last, real parsing for url(). Partly. #192 | Eevee (Alex Munroe) | 2014-07-12 | 1 | -0/+15 |
| | |||||
* | Recognize () as an empty list. | Eevee (Alex Munroe) | 2014-07-12 | 1 | -1/+2 |
| | |||||
* | Reformat the grammar. | Eevee (Alex Munroe) | 2014-07-12 | 1 | -93/+109 |
| | |||||
* | Speedups C code: spaces -> tabs | German M. Bravo | 2014-06-03 | 2 | -2/+2 |
| | |||||
* | Fix some declaration-after-statement gripes in the C. | Eevee (Alex Munroe) | 2014-05-21 | 3 | -6/+13 |
| | |||||
* | Return Unicode from the C scanner. More __future__. | Eevee (Alex Munroe) | 2014-03-29 | 1 | -4/+16 |
| | | | | Test suite now runs without any Unicode warnings. | ||||
* | Remove the "thin ice" logic from the block locators. | Eevee (Alex Munroe) | 2014-03-29 | 2 | -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-29 | 5 | -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 Jacobs | 2014-03-01 | 2 | -17/+114 |
| | | | | Signed-off-by: Aaron Jacobs <atheriel@gmail.com> | ||||
* | Support bare "..." on mixins, to allow arbitrary var injection. | Eevee (Alex Munroe) | 2013-09-26 | 1 | -0/+2 |
| | |||||
* | At long last, kill ParserValue and most of the Color constructor. | Eevee (Alex Munroe) | 2013-08-27 | 1 | -2/+2 |
| | |||||
* | Parser support for slurpy arguments. | Eevee (Alex Munroe) | 2013-08-23 | 1 | -10/+23 |
| | |||||
* | Correctly support scanning zero-length strings. | Eevee (Alex Munroe) | 2013-08-23 | 1 | -9/+7 |
| | |||||
* | Improved errors returned from the scanner | German M. Bravo | 2013-08-18 | 1 | -2/+2 |
| | |||||
* | Parentheses for maps too | German M. Bravo | 2013-08-17 | 1 | -2/+2 |
| | |||||
* | Removed legacy StringValue, ColorValue, *Value classes | German M. Bravo | 2013-08-16 | 1 | -4/+4 |
| | |||||
* | Maps can have literals as keys, they also take multiple optional commas ↵ | German M. Bravo | 2013-08-16 | 1 | -17/+30 |
| | | | | (ignored). Grammar re-organized | ||||
* | Merge branch 'experimental-maps' | Eevee (Alex Munroe) | 2013-08-16 | 1 | -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-15 | 2 | -19/+15 |
| | | |||||
| * | Experimental first crack at maps support. | Eevee (Alex Munroe) | 2013-08-15 | 2 | -24/+71 |
| | | |||||
* | | Remove trailing Undefined arguments | German M. Bravo | 2013-08-16 | 1 | -1/+1 |
| | |