Lines Matching refs:match
93 # A general-purpose chunk of regex to match whitespace and/or comments
108 # This should match a uma histogram enumeration macro expression.
122 # We want to match across lines, but still report a line number, so we keep
128 # will often span multiple lines, so finding a match looking just at the
130 match = uma_macro_re.search(contents)
131 while match:
132 line_number += contents.count('\n', 0, match.start())
133 max_arg = match.group(1) # The third argument.
135 if (not uma_max_re.match(max_arg) and match.group(2) !=
137 uma_range = range(match.start(), match.end() + 1)
138 # Check if any part of the match is in the changed lines:
140 if line_number <= num <= line_number + match.group().count('\n'):
144 # Strip off the file contents up to the end of the match and update the
146 contents = contents[match.end():]
147 line_number += match.group().count('\n')
148 match = uma_macro_re.search(contents)