Matthew Dean
49cbe520f6
Migrate JSCS and JSHint to ESLint and fix various ESLint styling errors
2016-12-31 20:03:46 -08:00
Matthew Dean
abb5375acb
Fix JSLint and JSCS errors
2016-07-19 01:38:54 -07:00
Matthew Dean
39150d513a
Simplified API on less object
...
e.g. "less.Ruleset()" instead of "new less.tree.Ruleset()"
Auto-casting of string values into nodes for AtRule, Declaration, Selector, Value
e.g. "less.Selector('&.a')" instead of "new tree.Selector(new tree.Element(new tree.Combinator('&'), '.a'))"
2016-07-19 01:30:34 -07:00
Matthew Dean
a38f8a1eb7
Added property accessors - performance issue solved by re-tooling value parsing
...
i.e. All values are anonymous strings until "queried"
- Unlike original PR, no change in existing test output for un-referenced properties
- unused variables would theoretically result in a tiny improvement in parsing time
2016-07-18 14:28:32 -07:00
Matthew Dean
d5803515d5
Allow minimum Less version for plugins to be a string
2016-07-13 02:33:28 -07:00
Matthew Dean
1ecb327a67
Merge branch 'feature/@plugin' into 3.x
...
* feature/@plugin:
All tests passing for @plugin - Inline JavaScript disabled by default - Deprecated "preprocessor" option removed (preprocessor plugins still valid)
Plugin loader set up for lessc, node, and browser
2016-07-12 22:35:16 -07:00
Matthew Dean
ad57737ce0
All tests passing for @plugin
...
- Inline JavaScript disabled by default
- Deprecated "preprocessor" option removed (preprocessor plugins still valid)
2016-07-12 22:26:39 -07:00
Matthew Dean
52e9b5e4fe
Rename Directive -> AtRule & Rule -> Declaration
...
- Added tree shim for old node types and plugin visitor shim to upgrade node visitors to new node types
2016-07-01 20:53:01 -07:00
Matthew Dean
27492a71ef
Rename extensions back to plugins
2016-07-01 14:43:34 -07:00
Matthew Dean
bd14f14709
Rename @plugin to @use extensions
2016-06-24 20:36:00 -07:00
Matthew Dean
36edeaa787
Fix input start position for @media blocks
2016-05-08 00:15:16 -07:00
Matthew Dean
d07a9b6cc6
Fix for #2841 - Fix reversion for "color-like" keywords.
2016-04-22 16:31:56 -07:00
Stefan Weil
bf279b36be
Fix typos found by codespell
...
Signed-off-by: Stefan Weil <sw@weilnetz.de >
2016-04-01 12:01:40 +02:00
Timothy
7853edcc96
Fix AST to include text for single line comments
2016-03-31 16:14:29 -04:00
Matthew Dean
7a80224415
Merge branch 'master' into root-functions
2016-03-04 09:47:48 -07:00
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
Matthew Dean
7f535a891d
Allow root functions defined via @plugin
2016-01-26 16:54:51 -08: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