cloudhead
58c457f1d3
fix error message when no filename, also try to print stack
2010-06-18 19:44:48 -04:00
cloudhead
7a80774960
fix comments in mixins.
2010-06-16 02:13:59 -04:00
cloudhead
b195601898
(dist) require() goes in its own file
2010-06-15 18:54:46 -04:00
cloudhead
7a2ce13712
better cross-environment handling. stub out require() in browser.
2010-06-15 18:44:59 -04:00
cloudhead
0477f14dde
better error handling
2010-06-11 21:46:24 -04:00
cloudhead
4bb64a2753
(new) css compression support
2010-06-11 21:45:51 -04:00
cloudhead
85d50c84da
Better error messages, wrap browser.js.
2010-06-07 15:47:41 -04:00
cloudhead
6a5354579b
improve error reporting, include filename
2010-06-04 13:28:38 -04:00
cloudhead
2487dbcec0
revert chunk split improvement
2010-06-04 12:27:25 -04:00
James Foster
bb2d359e78
Fixed incorrect inputLength. Avoid creating multiple empty chucks for consecutive blank lines.
2010-06-05 00:13:26 +08:00
cloudhead
23a4d55d04
fix optimizations, and errors on multi-line comments
2010-06-01 21:21:59 -04:00
cloudhead
697136961e
support CSS3 @media more fully
2010-05-22 18:24:37 -04:00
cloudhead
7a29d7fd67
support [0-9_] in CSS attribute names
2010-05-22 15:13:02 -04:00
cloudhead
fae02b0889
(minor) formatting
2010-05-18 21:16:44 -04:00
James Foster
101790db21
Fixes for IE7 compatibility
2010-05-19 08:52:49 +08:00
cloudhead
d501d9df7b
(minor) formatting
2010-05-18 19:51:24 -04:00
cloudhead
d552222a65
[#.] is not optional in a mixin call
2010-05-18 19:49:19 -04:00
cloudhead
944a7c2be9
removed wildcard parser
2010-05-18 19:12:41 -04:00
cloudhead
b38f5325c9
Refactored some of the evaluation mechanisms
...
- Don't call `eval` from `toCSS`
- Every node responds to `eval`
2010-05-07 23:21:16 -04:00
cloudhead
7155f44f43
be more flexible, pattern matching
2010-05-04 20:37:06 -04:00
cloudhead
0ec53f74e0
make operations left-associative Closes #20
2010-05-03 14:25:12 -04:00
cloudhead
30773f942f
New %
function, to perform string interpolation
2010-04-30 14:06:36 -04:00
cloudhead
0aaf715232
fixed selector attributes not parsing with a '-'
2010-04-28 17:29:22 -04:00
cloudhead
f6d1cf981e
Overhaul of the error system
...
The parse() function no longer assumes the command-line is the output
device. We use less.writeError in node.js.
2010-04-25 19:39:21 -04:00
cloudhead
8c762b9e26
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
7555c09707
More accurate parse error messages
...
Because of the backtracking, we lose the previous point of failure.
The solution is to store the furthest point the parser has parsed to,
when backtracking, and using it when showing parse errors.
2010-04-25 00:06:45 -04:00
cloudhead
ac7916aa87
Reorganized some of the parsing rule order
...
- Fix for "{" not parsing
- Use some backtracking when necessary,
it's prettier than crazy lookaheads.
2010-04-21 10:12:29 -04:00
cloudhead
92bdf598c7
quote 'import' so it doesn't freak out
2010-03-29 22:24:33 -04:00
cloudhead
30bf1ff7f3
fix optimization option wrongly scoped
2010-03-29 22:13:36 -04:00
cloudhead
be5d1999e3
no need for context passing
2010-03-22 23:15:25 -04:00
cloudhead
5977640040
optimization level is taken from env now
2010-03-22 23:13:24 -04:00
cloudhead
ca43e06db9
browser.js init -- very basic browser support - Makefile also builds for browser now
2010-03-22 23:12:58 -04:00
cloudhead
259a4ad451
refactored the import mechanism, added some doc
2010-03-22 20:59:49 -04:00
cloudhead
ef97105ce3
made parser reentrant for import support
2010-03-21 19:17:37 -04:00
cloudhead
10965a9034
allow for operations with no spaces, such as '4+5'
2010-03-19 18:46:42 -04:00
cloudhead
ef61aec5f1
refactored operand(), and take away parsing of -()
2010-03-19 18:05:36 -04:00
cloudhead
f973deec28
refactored rule() cause the closure slows things down too much for some reason
2010-03-19 17:56:43 -04:00
cloudhead
53996b2364
parse() is now asynch, and uses a callback
2010-03-19 17:50:35 -04:00
cloudhead
2c0dc223ce
Parse @import properly.
2010-03-18 18:13:02 -04:00
cloudhead
79a3b58fa8
fixed scope problem in parser
2010-03-18 14:49:10 -04:00
cloudhead
854f65f079
Refactored parsers.rule
2010-03-13 20:15:44 -05:00
cloudhead
61a7b2e9e7
Added lots more documentation to the parser
2010-03-13 20:14:44 -05:00
cloudhead
fe732e843c
refactor of module system. Things work properly now, and it's all much cleaner.
2010-03-13 03:34:48 -05:00
cloudhead
e0623094fa
part 2 of the comment pass
2010-03-12 15:03:05 -05:00
cloudhead
9c84b50d5b
we need to make sure we're not eating a '-' in the operation parsing, it fucks up our generation of functions which start with a -
2010-03-11 15:36:32 -05:00
cloudhead
8adac6569e
output directives properly
2010-03-11 15:35:23 -05:00
cloudhead
553aaecf6a
font property parsing, mainly the 'small/12px' part.
2010-03-11 15:34:57 -05:00
cloudhead
c4413facad
did some refactoring in the parser, so we don't need to pass variables
...
to the $() function anymore. We also don't need to pass arrays around.
2010-03-08 23:45:57 -05:00
cloudhead
23775bda9b
implemented dynamic mixins
2010-03-07 18:49:54 -05:00
cloudhead
2b0853de81
comments, wooh!
2010-03-06 17:53:55 -05:00