Lines Matching refs:code
41 code, comments = split_code_comments(line)
42 return line, code, comments
51 code, comments = split_code_comments(line)
52 if not code.strip():
54 if re.match('^ *\t', code):
56 if code.endswith('files('):
62 indent_count = len(code) - len(code.lstrip(' '))
64 elif code.endswith('= ['):
70 indent_count = len(code) - len(code.lstrip(' '))
72 elif infiles and (code.endswith(')') or code.strip().startswith(')')):
75 elif inlist and (code.endswith(']') or code.strip().startswith(']')):
80 if '[' in code or ']' in code:
82 if not code.startswith(indent) or code[len(indent)] == ' ':
84 line, code, comments = setline(contents, lineno, indent + line.strip())
86 if not code.endswith(','):
88 line, code, comments = setline(contents, lineno, code + ',' + comments)
90 if len(code.split(',')) > 2: # only one comma per line
92 entries = [e.strip() for e in code.split(',') if e.strip()]
93 line, code, comments = setline(contents, lineno,