Commit Graph

58 Commits

Author SHA1 Message Date
Luke Page
f8de5bcb16 replace simple regex's with simple string comparisons 2015-03-15 10:24:41 +00:00
Luke Page
5651517f5f Fix missing new statement, causing a undefined throw and bad error message 2015-03-13 16:06:19 +00:00
Calvin Juárez
d4a8804808 parser – fix #2496: allow detached rulesets as mixin argument defaults 2015-03-10 18:10:39 -06: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
Justineo
d53801eb77 try to implement preprocess plugins 2015-02-02 16:15:33 +08:00
Luke Page
fb5280f16f Merge branch 'master' of https://github.com/less/less.js 2015-01-30 22:29:03 +00:00
Luke Page
604c911441 style cop 2 - indentation 2015-01-30 20:41:25 +00:00
Luke Page
1494e25ef0 More style cop.. 2015-01-30 18:28:02 +00:00
Bass Jobsen
cf4039625f Update parser.js 2015-01-29 11:11:06 +01:00
Bass Jobsen
d3781258b7 Update parser-input.js 2015-01-29 11:07:37 +01:00
Bass Jobsen
48b379bbd0 endlines and comments
possible fix for https://github.com/less/less.js/issues/2370

I have used the following command to test this issue: `printf "p {\r//less\rc:1;\r}\r" | lessc -`

I'm not sure if this the most efficient fix.
I also tried `var nextNewLine = inp.substr(parserInput.i + 1).search(/\n|\r/);` to replace the `indexOf` but then i expect possible mismatches for `\r\n` which match on the first `\r`.
2015-01-29 00:27:09 +01:00
jurcovicovam
dc93dd54bf Merge https://github.com/less/less.js into nested-parent-selector-2026-v1
Conflicts:
	lib/less/parser/parser.js
	lib/less/tree/ruleset.js
2015-01-28 10:46:49 +01:00
jurcovicovam
964b991423 Reviews changes: spacing and commented code.
Bug fixed: fixed handling of multi level nesting.
2015-01-28 09:50:44 +01:00
Luke Page
d206167c84 enforce spaces between operators for consistency 2015-01-27 22:24:12 +00:00
Luke Page
28de1cf788 Require parenthesis 2015-01-27 21:57:07 +00:00
Luke Page
08a7f9ebeb more whitespace rules 2015-01-27 21:38:13 +00:00
Luke Page
379968773e disallow weird type conversion 2015-01-27 17:40:18 +00:00
Luke Page
31c3d04980 jscs style checking. Fixed whitespace issues. 2015-01-26 23:34:35 +00:00
Luke Page
82b29de3cd Merge branch 'patch-8' of https://github.com/bassjobsen/less.js 2015-01-26 22:28:42 +00:00
Luke Page
69d4d60240 Merge pull request #2401 from SomMeri/interpolate-pseudo-selector-1294
Allow selector interpolation inside pseudoselectors. #1294
2015-01-26 23:14:47 +01:00
Luke Page
5e6e16ed8c pick up comments on the end of the file 2015-01-26 19:52:56 +00:00
jurcovicovam
e064ac0ef2 Allow selector interpolation inside pseudoselectors. #1294 2015-01-20 16:08:02 +01:00
Bass Jobsen
1aec38f440 Update parser.js 2015-01-19 09:13:49 +01:00
jurcovicovam
b5711dbb13 Working but extremly ugly version. Desperately needs clean up. 2015-01-18 11:47:23 +01:00
Luke Page
10ea767708 Fix #2242 - detect if less does not parse final character 2015-01-04 08:45:31 +00:00
Luke Page
49955d3a35 Fix parse error effectinge pseudo classes with guards. Fixes #2352 2015-01-03 17:07:06 +00:00
Luke Page
89c95af070 Fix isSync option, turn browser back to running sychronously and fix many issues that came up 2014-11-22 18:30:36 +00:00
Andrey Taritsyn
7b567d016c Fix getting of character at index 2014-11-15 16:42:15 +03:00
Luke Page
4dab36dade support @counter-style. Fixes #2204 2014-11-09 14:13:53 +00:00
Veres Lajos
73f3fc4468 typo fixes 2014-11-02 23:18:29 +00:00
Luke Page
ba3d24a352 Support urls begining // which are unquoted. Fixes #2238 2014-10-21 13:01:01 +01:00
Luke Page
845ec72131 improve error reporting 2014-10-19 16:48:04 +01:00
Luke Page
dedf0eee38 rename env to context to avoid confusion with environment 2014-10-05 18:50:34 +01:00
Luke Page
7a6b1e278b Pull out the file manager aspect of the environment so new file managers can be added dynamically 2014-10-04 17:46:30 +01:00
Luke Page
823ab221dd further simplifications to the parse context 2014-09-22 21:24:48 +01:00
Luke Page
b3b8b278bd import managaer related simplifications 2014-09-22 20:32:46 +01:00
Luke Page
fb6c879cc4 remove env from all environment calls except the ones that actually need it 2014-09-21 16:46:44 +01:00
Luke Page
e357dae7bc allow lessc to load plugins. rename visitor directory to visitors to match others. Fix indexes in URL 2014-09-09 21:20:04 +01:00
Luke Page
1a78cd5901 Remove unnecessary text from require statements 2014-09-08 00:57:50 +01:00
Luke Page
f2bc59f63b Merge remote-tracking branch 'origin/master' into 2_0_0
Conflicts:
	CHANGELOG.md
	lib/less/index.js
	lib/less/parser/parser.js
	lib/less/tree/dimension.js
2014-09-05 23:31:42 +01:00
Luke Page
9d230623d2 Parser no longer requires environment 2014-09-04 18:42:00 +01:00
Luke Page
a46de448a3 move import manager creation out of parser 2014-09-04 18:35:56 +01:00
Luke Page
4f5a449b0b move creation of env to invoker 2014-09-04 18:24:24 +01:00
Luke Page
e5faba5154 Remove some interdepedencies 2014-09-04 18:16:08 +01:00
Luke Page
ca77dc3a6e Parser does not need to have a parseEnv stored on itself 2014-09-04 17:58:12 +01:00
Luke Page
9af3819822 parser no longer needs to expose imports (they are on the parseTree) and can use a variable instead of a reference to itself 2014-09-04 17:56:12 +01:00
Luke Page
d3c6f2208f Move toCSS out to a new class (still need to remove creation of that class from parser) 2014-09-04 17:42:38 +01:00
Luke Page
e108b50c51 move cleancss into lessc bin only 2014-09-03 18:33:19 +01:00
Luke Page
b55b596740 move transform out of the parser 2014-09-03 18:21:25 +01:00