95 Commits

Author SHA1 Message Date
Max Mikhailov
4bd587818c Merge pull request #2797 from seven-phases-max/fix-variable-call-whitespace
Disallow whitespace in variable calls (i.e "DR"-calls)
2016-02-24 20:01:08 +03:00
meri
c12a7df917 This fixes #2798 - left part of inequality could not be enclosed in
parenthesis.
2016-02-17 16:20:17 +01:00
Max Mikhailov
7b4dcc10f6 remove redundant condition in parser.expect per #2804 2016-02-17 11:33:46 +03:00
Max Mikhailov
67c3875900 Merge pull request #2804 from marijaselakovic/master
use instanceof operator instead of class comparison optimization
2016-02-17 11:30:48 +03:00
Max Mikhailov
17efa868be Merge pull request #2806 from seven-phases-max/fix-named-colors-regression
Fix comments after named color regression
2016-02-06 06:01:48 +03:00
Max Mikhailov
01b11a7440 Fix comments after named color regression 2016-02-06 04:29:07 +03:00
marija
3d23cce4b1 use instanceof operator for class comparison 2016-02-05 16:56:19 +01:00
Max Mikhailov
f1ded2b2f4 disallow whitespace in variable calls 2016-02-01 23:48:06 +03:00
Luke Page
29f8ae22cc upgrade jshint and fix new errors 2016-01-30 08:29:47 +00:00
Max Mikhailov
e3c13121df allow unknown at-rules w/o {} block 2016-01-26 11:00:31 +03:00
meri
8cc6ea89b1 Logical operator and now has higher precence then logical operator or. 2016-01-17 19:37:51 +01:00
meri
d538509101 Merge https://github.com/less/less.js 2016-01-14 23:46:37 +01:00
meri
ce55a8e79c Fixing #2124 - Parsing Error "Unrecognised input" for color operations
with color names.
2016-01-14 23:46:05 +01:00
Mária Jurčovičová
8c1fcb5115 Merge pull request #2763 from SomMeri/master
Added "or" keyword and allowed arbitrary logical expression in guards.
2016-01-14 14:27:36 +01:00
meri
1791587fdc removed pointless comment 2015-12-20 20:25:55 +01:00
meri
07c1c821e9 Simplified code. 2015-12-20 20:25:11 +01:00
meri
0952847217 remove debug logs 2015-12-20 20:24:09 +01:00
meri
81f6fcc312 testing predictability of pure virtual method 2015-12-20 20:19:52 +01:00
meri
77627050c7 Added "or" keyword and allowed arbitrary logical expression in guards. 2015-12-20 20:11:11 +01:00
Mária Jurčovičová
78bf3f18a9 Merge pull request #2485 from seven-phases-max/allow-underscore-after-numbers
Allow underscore in a dimension unit
2015-12-07 13:00:03 +01:00
meri
ead3e29f7b Fixing import by reference
- refactored how import reference works
- refactored to-css-visitor (this is side product, it was getting
  complicated)
- fixes issues #1851, #1896, #1878, #2716, #1968, #2162 (same as #1896)
2015-11-20 15:10:53 +01:00
jurcovicovam
30fe1cb9e2 Keep shorthand color form the same way as named colors are kept. #2481 2015-07-19 14:54:41 +02:00
seven-phases-max
3178103b7f merge updated expand-operator with master
plus reworked tests
2015-06-25 23:53:32 +04:00
seven-phases-max
1950248a87 fix formatting to meet jscs settings 2015-04-01 21:26:14 +04:00
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
936b78c6b4 See missing media blocks. Fixes #2494 2015-03-20 17:13:10 +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
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
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
seven-phases-max
bbdbe9c7d0 allow underscore in dimension unit 2015-02-28 02:07:43 +04:00
rjgotten
83db6e8d90 Allow adding plugins via @import (plugin) 2015-02-25 17:36:00 +01: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