Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 526c58b19f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (12 sloc) 0.549 kb
#!/usr/bin/env python
# Extract completions from CSS 2 plain text spec
import re, sys
css2 =
reject_re = re.compile("[<>\\[\\]]")
for match in re.finditer("'(?P<property>[a-zA-Z-]+)'\\s+Value:\\s+(?P<values>.*?)Initial", css2, re.MULTILINE|re.DOTALL):
if != 'property-name':
print "(%s . [%s])" % (, " ".join([ option.strip() for option in"|") if not and len(option) > 0 ]))
Jump to Line
Something went wrong with that request. Please try again.