We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d10eb commit e182ef5Copy full SHA for e182ef5
crates/csharp/src/interface.rs
@@ -1021,6 +1021,7 @@ impl InterfaceGenerator<'_> {
1021
.trim()
1022
.replace("<", "<")
1023
.replace(">", ">")
1024
+ .replace("*/", "*") // We can't close the comment, so if the user comment has */ we just remove the /
1025
.lines()
1026
.map(|line| format!("* {line}"))
1027
.collect::<Vec<_>>()
tests/codegen/issue1515-special-in-comment.wit
@@ -0,0 +1,13 @@
1
+package local:demo;
2
+
3
+world w {
4
+ export i;
5
+}
6
7
+/// Test we can handle "comment injection - attempting to close the comment we generate around wit comments
8
+interface i {
9
+ /// */
10
+ record r {
11
+ x: u32,
12
+ }
13
0 commit comments