| ... | @@ -7426,6 +7426,12 @@ const Templates = struct { | ... | @@ -7426,6 +7426,12 @@ const Templates = struct { |
| 7426 | } | 7426 | } |
| 7427 | if (templates.strip and contents[i] == '\n') { | 7427 | if (templates.strip and contents[i] == '\n') { |
| 7428 | new_line = true; | 7428 | new_line = true; |
| | 7429 | } else if (contents[i] == '_') { |
| | 7430 | if (std.mem.startsWith(u8, contents[i..], "_LITNAME")) { |
| | 7431 | try templates.buffer.appendSlice(root_name); |
| | 7432 | i += "_LITNAME".len; |
| | 7433 | continue; |
| | 7434 | } |
| 7429 | } else if (contents[i] == '.') { | 7435 | } else if (contents[i] == '.') { |
| 7430 | if (std.mem.startsWith(u8, contents[i..], ".LITNAME")) { | 7436 | if (std.mem.startsWith(u8, contents[i..], ".LITNAME")) { |
| 7431 | try templates.buffer.append('.'); | 7437 | try templates.buffer.append('.'); |