Commits

Ollie Rutherfurd  committed ee449e0

David Ziegler's fix for urls being mistaken for comments

From http://groups.google.com/group/pocoo-libs/browse_thread/thread/559639a58fbc733a

  • Participants
  • Parent commits 6626fb5

Comments (0)

Files changed (1)

File clevercss.py

 # regular expresssions for the normal parser
 _var_def_re = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.+)')
 _def_re = re.compile(r'^([a-zA-Z-]+(?:\s*,\s*[a-zA-Z-]+)*)\s*:\s*(.+)')
-_line_comment_re = re.compile(r'//.*?$')
+_line_comment_re = re.compile(r'(?<!:)//.*?$')
 
 # list of operators
 _operators = ['+', '-', '*', '/', '%', '(', ')', ';', ',']