Skip to content

Commit f7fb3f3

Browse files
authored
Fix .h2 not converting to .h in the #include section (#1371)
1 parent 482542b commit f7fb3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/to_cpp1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ class cppfront
13031303
if (
13041304
line.cat == source_line::category::preprocessor
13051305
&& contains(line.text, "#include")
1306-
&& !line.text.ends_with("*.h2\"")
1306+
&& !line.text.ends_with(".h2\"")
13071307
)
13081308
{
13091309
printer.print_cpp1(line.text, curr_lineno);

0 commit comments

Comments
 (0)