summaryrefslogtreecommitdiff
path: root/scss/compiler.py
Commit message (Collapse)AuthorAgeFilesLines
* fix IE's rules limit - log as warningMarkus Heiser2020-09-091-2/+2
| | | | | | | | | | As far as I know [1] IE 11 supports 65534 rules. BTW fix logging class from error to warning [2]. [1] https://forums.asp.net/t/2059387.aspx?IE+10+and+11+CSS+Style+Sheet+Rules [2] bdb02e8d Warning about IE 4095 maximum and improved debug_info Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Strip scalar null properties from output. Fixes #337Eevee (Lexy Munroe)2016-06-081-0/+2
|
* Add the Sass 3.4 *-exists functions. Fixes #226, #229, #353Eevee (Lexy Munroe)2016-06-081-0/+1
|
* Put @imported rules in the place they were imported. Fixes #352Eevee (Lexy Munroe)2016-06-081-74/+21
| | | | | | | | | | | | There was some old code that grouped rules by the literal file they came from -- even if @imported -- solely for the sake of some debug code that I'm not convinced is particularly useful. I removed the grouping, which ensures that an @import in the middle of a file will correctly leave its rules in that position. Also inlined a few very short methods that weren't used anywhere else and mostly just made browsing the code more confusing than necessary. I think this might break the repl, but it was already broken, so.
* Improved deprecation warning messagesGerman M. Bravo2015-07-171-2/+2
|
* commentEevee (Alex Munroe)2015-01-221-0/+7
|
* Fix (by ignoring) bare properties in @variables.Eevee (Alex Munroe)2015-01-161-3/+1
|
* Stop using apply_vars on block arguments; use the parser instead.Eevee (Alex Munroe)2014-12-101-1/+5
|
* Make line numbers in errors moderately less wrong.Eevee (Alex Munroe)2014-12-101-0/+3
|
* Add Compiler.compile_sources.Eevee (Alex Munroe)2014-11-121-0/+8
|
* Undocumented support for allowing @import to work on .css files.Eevee (Alex Munroe)2014-11-121-1/+9
| | | | | | | Mostly for the benefit of django-pyscss (which thusfar has explicitly forced this behavior) so it doesn't need to copy and paste large blocks of fiddly code, but seems like a popular feature request in Ruby Sass as well.
* Remove reference to is_real_file.Eevee (Alex Munroe)2014-10-161-15/+7
|
* Allow both Paths and strings.Eevee (Alex Munroe)2014-10-131-4/+6
|
* Experiment with porting path handling to use pathlib.Eevee (Alex Munroe)2014-10-061-22/+25
| | | | | The biggest impetus here is to allow Django integration without having to copy and paste massive piles of code.
* Make apply_extends more threadsafe, probably. Fixes #304.Eevee (Alex Munroe)2014-09-161-8/+5
|
* Possible implementation of an import hook for extensions.Eevee (Alex Munroe)2014-09-161-149/+12
|
* Clarify that this argument passing behavior is not a deviation.Eevee (Alex Munroe)2014-09-081-3/+3
|
* Stop doing textual interpolation on argspecs before parsing them.Eevee (Alex Munroe)2014-09-081-1/+0
|
* Double fix for @import breaking when given a relative dirname.Eevee (Alex Munroe)2014-09-081-4/+8
|
* scss.expression -> scss.calculatorEevee (Alex Munroe)2014-09-051-1/+1
|
* Append a newline in compressed mode.Eevee (Alex Munroe)2014-09-041-0/+4
|
* Fix @extend heisenbug when extending a selector that appears twice in the ↵Eevee (Alex Munroe)2014-09-041-34/+48
| | | | same rule.
* Support !global (currently a no-op). Fixes #272.Eevee (Alex Munroe)2014-09-011-12/+21
|
* Preserve the order of slurpy kwargs. Fix a heisentest.Eevee (Alex Munroe)2014-08-311-2/+8
|
* Fix spurious deprecation warning.Eevee (Alex Munroe)2014-08-291-1/+2
|
* Move ALL the parsing stuff under scss/grammar/.Eevee (Alex Munroe)2014-08-291-6/+1
| | | | | | | | | 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
* Add some helpers for doing simple compilations.Eevee (Alex Munroe)2014-08-281-4/+40
| | | | | | | Port the file tests and the "xfail" missing import test to use them. Also: current directory is no longer in the search path by default, but compile_file() adds the given file's containing directory.
* Shuffle exception hierarchy a bit.Eevee (Alex Munroe)2014-08-281-8/+6
|
* Fix this ancient xCSS-style test, and add some warnings.Eevee (Alex Munroe)2014-08-271-0/+8
|
* Remove calculator's reliance on config.FATAL_UNDEFINED.Eevee (Alex Munroe)2014-08-271-0/+3
|
* Remove compiler's reliance on config.CONTROL_SCOPING.Eevee (Alex Munroe)2014-08-271-4/+13
|
* Remove compiler's reliance on config.DEBUG.Eevee (Alex Munroe)2014-08-271-10/+17
|
* Move Compass to an extension.Eevee (Alex Munroe)2014-08-271-2/+1
|
* Convert extra and fonts into extensions.Eevee (Alex Munroe)2014-08-271-2/+2
|
* Introduce an Extension class, finally. Making a stab at #130.Eevee (Alex Munroe)2014-08-271-20/+55
| | | | | | All the core functions have been moved into a core Extension, and Namespace has been beefed up a little bit so declaring functions is easy.
* Partial support for slurpy named arguments.Eevee (Alex Munroe)2014-08-261-3/+11
|
* Fix a couple oopses on Python 3.Eevee (Alex Munroe)2014-08-241-0/+1
|
* Remove magical selector reordering with @extend. Fixes #269.Eevee (Alex Munroe)2014-08-241-15/+8
| | | | | | Turns out the @extend rewrite was already doing the right thing; the only things keeping this logic around were a couple old xCSS tests that expected output in the wrong order.
* Convert some deprecations into real warnings, not logs.Eevee (Alex Munroe)2014-08-241-2/+24
|
* for...to excludes the upper bound. Fixes #275.Eevee (Alex Munroe)2014-08-241-2/+7
|
* Fix debug_info and live_errors.Eevee (Alex Munroe)2014-08-241-13/+18
| | | | | | | | | The live_errors code only existed in the only 'compile' method; oops. debug_info just wasn't being passed in by Scss. Also, due to changes in SourceFile, it wasn't being generated for fake files. I don't mind loosening that restriction, since hopefully we'll have source map support fairly soon.
* Clean up @import and SourceFile.Eevee (Alex Munroe)2014-08-241-59/+111
| | | | | | | | | | | | | | Real files are now identified by their absolute path at all times. Fake files are expected to provide some other unique identifier. Importing now explicitly checks that a found file is a descendant of one of the search paths, so relative imports can finally work. The spec rules for deciding when an import should compile to a CSS @import have been (mostly) implemented. Also, `@import "a.css", "b.css"` would spit out broken CSS; this is now fixed.
* Fix an AttributeError in _at_import, and the swallowing thereof.Eevee (Alex Munroe)2014-08-241-3/+7
|
* Restore support for @option, albeit a little more strictly.Eevee (Alex Munroe)2014-08-231-40/+66
|
* Break up the compiler, and a lot of big modules. Fixes #133.Eevee (Alex Munroe)2014-08-221-0/+1424
Compiler is now separate from a compilation, with a frontend class that tries to preserve the old semantics. Much nicer. Ahh. @option is totally broken, though, which breaks a whole lot of the test suite as well.