Home | History | Annotate | Download | only in tools

Lines Matching defs:line

67 def clean_comment_line(line):
68 return line[3:].strip() + '\n'
81 for line in header:
82 line = line.strip()
84 if line == 'struct FormatStyle {':
87 if line.startswith('///'):
89 comment = clean_comment_line(line)
90 elif line == '};':
94 if line.startswith('///'):
95 comment += clean_comment_line(line)
96 elif line.startswith('enum'):
98 name = re.sub(r'enum\s+(\w+)\s*\{', '\\1', line)
100 elif line.endswith(';'):
102 field_type, field_name = re.match(r'([<>:\w]+)\s+(\w+);', line).groups()
108 if line.startswith('///'):
110 comment = clean_comment_line(line)
111 elif line == '};':
117 if line.startswith('///'):
118 comment += clean_comment_line(line)
121 enum.values.append(EnumValue(line.replace(',', ''), comment))