Commit Graph

470 Commits

Author SHA1 Message Date
Luke Page
baba33ea6a Fix some bugs with detached rulesets and media queries 2014-02-17 19:15:47 +00:00
Luke Page
15174c0860 small approx 1% speed improvement 2014-02-12 23:38:35 +00:00
Luke Page
ef3c63fb9a Test out some theoretical back tracking and fix bugs 2014-02-12 23:34:14 +00:00
Luke Page
e3576b9c01 implement n level back-tracking and then don't absorb a parenthesis, fixing both issues with 2 new test cases 2014-02-12 23:10:52 +00:00
Luke Page
ed0e13a0ec do not chunk inside parens so that we can predict mixin calls containing detached rulesets. Also now save the current chunk (may not be required). 2014-02-12 22:34:58 +00:00
Luke Page
7f26515630 small simplification 2014-02-11 22:02:48 +00:00
Luke Page
55033c77ed more tests and name arguments for caller 2014-02-11 22:01:26 +00:00
Luke Page
2be0b8c922 Merge remote-tracking branch 'origin/master' into detached-rulesets 2014-02-11 13:53:16 +00:00
Luke Page
f7414a1072 detached rulesets 2014-02-09 22:20:08 +00:00
seven-phases-max
09c4311594 Added support for variables in certain at-rules (keyframes, namespace, charset). 2014-02-09 13:42:01 +04:00
seven-phases-max
9f4818d8fd Added support for property merge via +_; 2014-02-04 06:54:05 +04:00
Luke Page
eba67deddf Merge branch 'property-interp-fix-2' of https://github.com/seven-phases-max/less.js
Conflicts:
	lib/less/parser.js
2014-02-01 18:33:58 +00:00
Luke Page
4923696958 Merge branch 'patch-6' of https://github.com/oyejorge/less.js 2014-02-01 18:28:04 +00:00
Luke Page
245717afaa Fix parser error with block comments. Fixes #1833 2014-02-01 08:42:10 +00:00
seven-phases-max
7768a91b3c Improved positioning of "missing closing )" error. 2014-02-01 08:31:40 +04:00
seven-phases-max
98df50e016 removed debugger statement mistakenly left out. 2014-02-01 03:58:24 +04:00
seven-phases-max
554448d49b Improved missing ( and { error detection. 2014-02-01 03:03:00 +04:00
Josh Schmidt
815741acfb Check value of elements before getting args
When parsing, mixin.call() doesn't need to look for mixin.args if there weren't any elements
2014-01-22 20:05:44 -07:00
seven-phases-max
52ba472bb7 Added rounding of output numbers (hardcoded to max. 8 digits in this commit). 2014-01-18 09:58:14 +04:00
Kemal Dag
94ef7cba5e small compatibility fix for prototype.js 2014-01-14 18:38:17 +02:00
Luke Page
86476d58cb allow empty files 2014-01-12 11:51:02 +00:00
Luke Page
3755fb28b0 Merge pull request #1780 from brenmar/master
#1778 standardised using starting index, to fix incorrectly mapped sourcemaps
2014-01-11 10:43:16 -08:00
Luke Page
0f8f995983 Fix css guard error. fixes #1796 2014-01-11 18:35:11 +00:00
Luke Page
92c3ac2c88 support shadow dom selectors. fixes #1801 2014-01-11 17:43:19 +00:00
seven-phases-max
bca1f996a6 Fixed incorrect property interpolation for certain variable types, updated tests. 2014-01-07 19:51:41 +04:00
Mark Brennan
261d4e0f9c fixed using starting index for parser nodes, which enables the creation of accurate source maps 2014-01-05 21:10:55 -08:00
Luke Page
626b004263 add comment explaining new function check 2014-01-03 07:14:47 +00:00
Matthew Dean
13aba08ed8 Fixes "function" test against regular expressions
In some browser engines (especially older versions of Webkit), this
test fails when the argument is a RegExp.

See:
http://stackoverflow.com/questions/5054352/why-use-typeof-for-identifyin
g-a-function

Fix tested and works with Adobe AIR.
2014-01-02 15:04:02 -08:00
Luke Page
479827b02f add banner option. Fixes #1735 2013-12-22 16:17:52 +00:00
Luke Page
8440773f8a change to use format consistent with the browser and for sourcemaps to take additional variables into account 2013-12-21 11:14:35 +00:00
Luke Page
9fccf9643f Merge branch 'parse-add-variables' of https://github.com/joscha/less.js
Conflicts:
	lib/less/parser.js
	test/less-test.js
2013-12-20 16:41:27 +00:00
seven-phases-max
ebdadaedac Experimental support for "property name interpolation", part-2. 2013-12-18 07:10:00 +04:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
Luke Page
4f7c06c9c8 jshint: eval option 2013-12-14 20:01:09 +00:00
Luke Page
ff8285fbc6 some code review changes and test for the new extra/missing parens check 2013-12-14 17:59:59 +00:00
Joscha Feth
723cdb501e This adds an additional vars parameter to the parse method. It allows a user to inject variables into a less string before compiling. 2013-12-08 22:50:54 +01:00
Luke Page
5367b8b6be Merge branch 'perf-tune' of https://github.com/fredburger/less.js
Conflicts:
	lib/less/to-css-visitor.js
2013-12-08 17:25:58 +00:00
Luke Page
5c41f72fa9 add clean css options parameter and option. fixes #1721 2013-12-08 10:52:06 +00:00
Luke Page
3b242daacd allow plugins 2013-11-17 23:07:01 +00:00
Luke Page
355cd7488e rename the sourcemappingurl to sourcemapurl, add to bin/lessc and adjust to not normalize 2013-11-17 16:26:47 +00:00
Kevin Attfield
855eca1d93 added sourceMappingURL option 2013-11-17 15:57:38 +00:00
Luke Page
0e57dca6b9 add options to disable clean css options that interfere with less operation. upgrade clean css 2013-11-16 17:41:46 +00:00
fredburger
56c3338d7d Minor fixes. #1615 2013-10-30 11:12:09 +01:00
fredburger
52dc714927 New input chunker in parser.js. #1615 2013-10-30 08:12:44 +01:00
fredburger
1a33bc69f8 Misc. perf optimizations. #1615 2013-10-30 08:09:17 +01:00
Luke Page
9a7351d27f fix spacing issue with extends and fix tests 2013-10-20 11:28:47 +01:00
Luke Page
145406b539 do not re-import the re-entry file. Fixes #1484 2013-10-17 18:04:56 +01:00
Luke Page
d8d936862d Fix error message when putting guards on a single selector 2013-10-17 17:51:25 +01:00
Mohammad Samman
abe09a2851 proposed solution to #1568: percentage as attribute 2013-09-28 17:51:04 -07:00
Luke Page
5f20c4aeaa support @host. Fixes #1560 2013-09-22 10:03:50 +01:00