@@ -180,6 +180,8 @@ fn (mut app App) process_line(text string) ! {
180180 category = .cgen
181181 } else if is_js_backend (text) {
182182 category = .js_backend
183+ } else if is_comptime (text) {
184+ category = .comptime
183185 } else if is_db (text) {
184186 category = .db
185187 } else if is_stdlib (text) {
@@ -220,7 +222,7 @@ fn (mut app App) process_line(text string) ! {
220222 // exit(0)
221223 // }
222224 if (semicolon_pos < 15
223- && prefix in ['checker' , 'cgen' , 'parser' , 'v.parser' , 'ast' , 'jsgen' , 'v.gen.js' , 'fmt' , 'vfmt' , 'tools' , 'examples' ])
225+ && prefix in ['checker' , 'cgen' , 'orm' , ' parser' , 'v.parser' , 'native ' , 'ast' , 'jsgen' , 'v.gen.js' , 'fmt' , 'vfmt' , 'tools' , 'examples' ])
224226 || (semicolon_pos < 30 && prefix.contains (', ' )) {
225227 s = '- ' + text[semicolon_pos + 2 ..].capitalize ()
226228 }
@@ -325,7 +327,7 @@ fn (l Line) write_at_category(txt string) ?string {
325327 // Trim "prefix:" for some categories
326328 // mut capitalized := false
327329 mut has_prefix := true
328- if l.category in [.cgen, .checker, .improvements] {
330+ if l.category in [.cgen, .checker, .improvements, .native, .orm ] {
329331 has_prefix = false
330332 if semicolon_pos := line_text.index (': ' ) {
331333 prefix := line_text[..semicolon_pos]
@@ -560,6 +562,10 @@ fn is_os_support(text string) bool {
560562 return is_xxx (text, os_support_strings)
561563}
562564
565+ fn is_comptime (text string ) bool {
566+ return text.contains ('comptime:' )
567+ }
568+
563569fn is_xxx (text string , words []string ) bool {
564570 for s in words {
565571 if text.contains (s) {
0 commit comments