Home | History | Annotate | Download | only in build

Lines Matching refs:re

5 import re
27 return re.sub(re.compile(r'@\w+.*?{(.*{.*?})+.*?}', re.DOTALL), '\\1', s)
30 return re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', s)
34 return re.sub(re.compile(grit_reg, re.DOTALL), '', s)
45 for rule in re.finditer(r'{(.*?)}', contents, re.DOTALL):
55 return re.search(r'(?:^|\S){|{\s*\S+\s*$', line)
60 m = re.search(r'\.(-?[_a-zA-Z0-9-]+).*[,{]\s*$', line)
68 return (line.find('}') >= 0 and re.search(r'[^ }]', line) and
69 not re.match(frame_reg, line))
72 return re.search(r'(?<!data):(?!//)\S[^;]+;\s*', line)
82 m = re.search(hex_reg, line)
88 return re.search(small_seconds, line)
91 return re.search(r'\(\s*\'?\s*data:', line)
94 return re.search(r'[_a-zA-Z0-9-](?<!data):(?!//)[^;]+;\s*[^ }]\s*', line)
96 any_reg = re.compile(r':(?:-webkit-)?any\(.*?\)', re.DOTALL)
97 multi_sels = re.compile(r'(?:}[\n\s]*)?([^,]+,(?=[^{}]+?{).*[,{])\s*$',
98 re.MULTILINE)
102 for b in re.finditer(multi_sels, re.sub(any_reg, '', contents)):
107 m = re.search(hex_reg, line)
111 ms = int(float(re.search(small_seconds, line).group(1)) * 1000)
116 for h in re.finditer(hex_reg, line)]
120 h = re.search(hex_reg, line).group(1)
130 for z in re.finditer(re.compile(zeros, re.MULTILINE), contents):
132 if not re.search(hsl, first_line):
207 # Remove all /*comments*/, @at-keywords, and grit <if|include> tags; we're
243 # Add your name if you're here often mucking around in the code.