1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
Commit graph

16 commits

Author SHA1 Message Date
Nathan Weizenbaum
24bd863573 Add a Haml::Util class for nifty utility functions. 2008-11-22 19:17:06 -08:00
Nathan Weizenbaum
9ebbe62230 Support Unicode-escapes in Sass strings. 2008-11-22 17:39:59 -08:00
Nathan Weizenbaum
8f4ac8e888 Test inputs for hsl() as well. 2008-10-25 19:02:54 -07:00
Nathan Weizenbaum
ce15479a65 Make sure Color objects have legal values. 2008-10-25 18:57:10 -07:00
Nathan Weizenbaum
ad518a4dc1 Merge branch 'chriseppstein/master' (early part) 2008-10-16 12:15:38 -07:00
Chris Eppstein
689bb9e683 No longer perform division using integer division if only integers are used.
If you want integer-based division you should now do the following instead:
floor(14/5)
which will return 2 instead of 2.8.
2008-10-15 20:26:26 -07:00
Chris Eppstein
00e953df48 New numeric transformation functions for SassScript: round, ceil, floor, abs. 2008-10-15 20:26:16 -07:00
Nathan Weizenbaum
ea9addc385 Scope variables at indentation level. 2008-10-15 20:22:01 -07:00
Chris Eppstein
26e7fc7ff4 Unit tests and documentation for the percentage function. 2008-10-15 20:20:22 -07:00
Chris Eppstein
8ac2f30726 Performance optimizations for try_tok
1. Don't need to call @lexer.done? because peek returns nil when it is done.
2. We can avoid calling each by using include?
2008-10-14 09:41:16 -07:00
Chris Eppstein
128d00df3d Small optimization for the token method. 2008-10-14 08:01:22 -07:00
Chris Eppstein
95e16e4ed9 Precompile most of the Regular Expressions in the lexer. 2008-10-13 20:30:12 -07:00
Nathan Weizenbaum
6e347d5cca Delay SassScript variable resolution until #perform. 2008-10-12 20:26:59 -07:00
Nathan Weizenbaum
983f8c199e Make sure function arguments are resolved before passing them to the functions. 2008-10-12 20:21:50 -07:00
Nathan Weizenbaum
05a617b86d Mark some new Sass::Script classes as :nodoc:. 2008-10-12 19:04:40 -07:00
Nathan Weizenbaum
03d2ab6f3b Rename Sass::Constant to Sass::Script, and refer to constants as variables. 2008-10-12 19:03:06 -07:00