Commit Graph

1612 Commits

Author SHA1 Message Date
Luke Page
a01c40e1b9 more replacement of regexes 2015-03-21 16:40:57 +00:00
Luke Page
16ed6bfc2e Remove regex used every node with a char lookup 2015-03-21 10:28:35 +00:00
Luke Page
5c0179d199 Merge branch 'master' of https://github.com/less/less.js 2015-03-20 17:14:41 +00:00
Luke Page
936b78c6b4 See missing media blocks. Fixes #2494 2015-03-20 17:13:10 +00:00
Luke Page
a6dca8872a Merge pull request #2504 from bassjobsen/relative
optional relative amounts for color functions, see#975
2015-03-20 08:22:44 +00:00
Luke Page
b10928720f Merge branch 'tests' of https://github.com/bassjobsen/less.js
Conflicts:
	test/index.js
2015-03-20 08:11:46 +00:00
rjgotten
b948dad7ab Fix selectors folding into directives
When directives bubble up to global scope, selectors are no longer
folded into directives that do not logically allow them.
Fixes #2511
2015-03-19 20:22:40 +01:00
Luke Page
8526dee6be Merge pull request #2505 from bassjobsen/paths
fix for issue #2500
2015-03-16 06:40:19 +00:00
Bass Jobsen
4bb098bfc9 fix for issue #2500 2015-03-15 23:09:50 +01:00
Luke Page
ebb79c08b2 fix call to removed function 2015-03-15 17:50:48 +00:00
Luke Page
d7846e2ae5 Merge pull request #2479 from rjgotten/import-plugin
Import plugin
2015-03-15 17:44:47 +00:00
Luke Page
54556bddf2 missing save/restore code searching for assignments 2015-03-15 17:39:29 +00:00
Luke Page
63a150b3be escape quickley with simple properties 2015-03-15 17:29:25 +00:00
Luke Page
d05ffcc4b0 remove the quoted regex, simplify the comment parsing 2015-03-15 13:45:06 +00:00
Luke Page
376c264f95 Fix missing forget in parser 2015-03-15 12:17:41 +00:00
Luke Page
f8de5bcb16 replace simple regex's with simple string comparisons 2015-03-15 10:24:41 +00:00
rjgotten
9518763128 Updated plugin import syntax
- Updated parser to recognize `@plugin` and removed parsing support for
the (plugin) import option.
- Updated plugin import unit tests to `@plugin` syntax
2015-03-15 11:05:37 +01:00
Bass Jobsen
622a521b11 optional relative amounts for color functions, see#975 2015-03-15 00:12:47 +01:00
Luke Page
5651517f5f Fix missing new statement, causing a undefined throw and bad error message 2015-03-13 16:06:19 +00:00
Luke Page
fe8cf75d14 verbose is not deprecated since now it does something. Fixes #2441 2015-03-13 15:54:47 +00:00
Luke Page
5387ee5f2f Merge pull request #2497 from calvinjuarez/ruleset-as-default-arg
Allow detached rulesets as mixin argument defaults
2015-03-11 06:03:30 +00:00
Calvin Juárez
d4a8804808 parser – fix #2496: allow detached rulesets as mixin argument defaults 2015-03-10 18:10:39 -06:00
Bass Jobsen
0ed1772e4d Merge remote-tracking branch 'upstream/master' into tests 2015-03-10 15:12:38 +01:00
rjgotten
a9e0848b6e Cleaning up some left-overs
There were still some changes around that were based on an older
implementation of `@import (plugin)`. This removes them and tidies up
the files.
2015-03-06 10:24:58 +01:00
rjgotten
94d3f469d4 merge from upstream 2015-03-05 16:12:56 +01:00
rjgotten
d119e01807 Scoped @import (plugin) functions loading
- Limited @import (plugin) support to add/addMultiple of functions
- Altered @import (plugin) loading to support browser
- Support proper closure scoping of @import (plugin) loaded functions
2015-03-05 15:55:37 +01:00
Bass Jobsen
296014a632 add more plugin tests 2015-03-03 22:52:54 +01:00
Bass Jobsen
6c66aeb71c change use case and add test 2015-02-28 22:32:40 +01:00
Bass Jobsen
57def23b52 Merge branch 'patch-12' of https://github.com/bassjobsen/less.js into patch-12 2015-02-28 15:48:12 +01:00
Luke Page
95441fa501 Do not require every extend is matched inside every media query and directive - removes alot of false warnings. Fixes #2499 2015-02-26 19:07:45 +00:00
Luke Page
a37a742b7d Fix #2472 - don't loose the unit when not in strictUnits mode 2015-02-26 18:41:26 +00:00
Luke Page
7d86a5e72d Temp. fix for comment nodes in functions. Fixes #2475 2015-02-26 18:22:39 +00:00
rjgotten
d96af08795 Fix lint errors and add tests for @import (plugin) 2015-02-26 14:40:36 +01:00
rjgotten
39c6aa65f3 Make @import (plugin) environment-dependant
Shifts some logic around and extends some of the management classes in
such a way that plugins loaded via an `@import (plugin) "..."`
declaration are only loaded in environments that have support for
loading plugins. (i.e. Node.js)
2015-02-26 13:32:28 +01:00
jurcovicovam
ff558e9851 Merge https://github.com/less/less.js into nested-directives-in-directives-v2-1691-2104 2015-02-26 09:39:18 +01:00
rjgotten
83db6e8d90 Allow adding plugins via @import (plugin) 2015-02-25 17:36:00 +01:00
jurcovicovam
028f3c79be Bubbling of directives. 2015-02-24 17:27:27 +01:00
jurcovicovam
eff8230c3c directive.rules now holds array instead of single selector.
It is because:
1.) Consistency: media.js is done the same way.
2.) Ruleset may or may not change to array in to-css-visitor. All
    following code had to hande two cases afterwards.
2015-02-24 14:08:11 +01:00
Bass Jobsen
5bc1208987 do not output when referencing
should fix https://github.com/less/less.js/issues/2464
2015-02-23 18:39:39 +01:00
Bass Jobsen
121bdd8365 allow a list of colors as argument for the svg-gradient function 2015-02-11 20:35:28 +01:00
Luke Page
6fd2a5751c v2.4.0 release 2015-02-08 11:41:49 +00:00
Luke Page
8e7c285de7 Fix jscs violations, happening on travis 2015-02-07 11:29:52 +00:00
Luke Page
f2dc984e7f Merge branch 'master' of https://github.com/less/less.js 2015-02-07 11:26:58 +00:00
Krzysztof Chrapka
5fac1f0e0b Fix empty sourcemaps
fixes #2430
2015-02-06 18:21:24 +01:00
Luke Page
97d039f267 extract and length now skip over comment nodes. Fixes #2431 2015-02-04 17:28:48 +00:00
Luke Page
054d88abb9 Merge pull request #2429 from Justineo/master
Implementing preprocessing plugins
2015-02-03 07:53:25 +01:00
Luke Page
23a1159c44 Merge branch 'master' of https://github.com/less/less.js 2015-02-02 21:53:31 +00:00
Luke Page
2114a3fe7a fragment urls referencing just a fragment are assumed absolute - referencing the current page. Fixes #2320 2015-02-02 20:08:48 +00:00
Justineo
197619ab2a fix code style 2015-02-02 17:24:41 +08:00
Justineo
093e2ea42c Merge branch 'master' of https://github.com/less/less.js 2015-02-02 16:15:40 +08:00