File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
const std = @import ("std" );
2
- const . NAME = @import (".NAME" );
2
+ const _LITNAME = @import (".NAME" );
3
3
4
4
pub fn main () ! void {
5
5
// Prints to stderr, ignoring potential errors.
Original file line number Diff line number Diff line change @@ -7426,6 +7426,12 @@ const Templates = struct {
7426
7426
}
7427
7427
if (templates .strip and contents [i ] == '\n ' ) {
7428
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
7435
} else if (contents [i ] == '.' ) {
7430
7436
if (std .mem .startsWith (u8 , contents [i .. ], ".LITNAME" )) {
7431
7437
try templates .buffer .append ('.' );
You can’t perform that action at this time.
0 commit comments