Skip to content

Commit

Permalink
merging in kroo's fork -- @import statements +tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Jun 19, 2010
2 parents 5f76cc2 + d468b9d commit 0453676
Show file tree
Hide file tree
Showing 12 changed files with 630 additions and 113 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,6 @@
*.pyo
*.swp
*.swo
CleverCSS.egg-info
build
dist
5 changes: 5 additions & 0 deletions BUGFIXES
@@ -1,5 +1,10 @@
List of bug fixes since CleverCSS-0.1
===================================
5/27/10 - v.0.1.6 - submitted by Elliot Kroo - added support for @import statements. Syntax is similar to css, but expects a clever css file -- namely, they must be defined at the top of the file, and will be parsed as a clevercss file.

9/18/09 - v.0.1.5 - submitted by Tim Babych - The Parser was not aware of negative numbers. Thus any minus sign was an operator, leading to unneeded calculations. Say, "margin: -2px -2px" was converted into "margin: -4px"

9/18/09 - v.0.1.5 - submitted by Tim Babych - LineIterator was not filtering out "\n"s that were left after trimming /* comments */, causing an exception in Parser

9/01/09 - v.0.1.4 - submitted by David Niergarth and 'Lasse' - Missing None check in Engine.evaluate which causes context to always be reset to {}.

Expand Down
4 changes: 2 additions & 2 deletions bin/ccss
Expand Up @@ -39,7 +39,7 @@ def main():

(options, args) = parser.parse_args()
if options.eigen_test:
do_test()
print do_test()
elif options.list_colors:
list_colors()
elif options.to_ccss:
Expand Down Expand Up @@ -92,7 +92,7 @@ def do_test():
rx = re.compile(r'Example::\n(.*?)__END__(?ms)')
text = rx.search(clevercss.__doc__).group(1)
ccss = '\n'.join(line[8:].rstrip() for line in text.splitlines())
print clevercss.convert(ccss)
return clevercss.convert(ccss)

def list_colors():
print '%d known colors:' % len(clevercss.consts.COLORS)
Expand Down

0 comments on commit 0453676

Please sign in to comment.