Skip to content

Commit

Permalink
Add another keyword to the list of WIT keywords when printing (#1074)
Browse files Browse the repository at this point in the history
This fixes a recent fuzz-bug which didn't escape `with` as `%with`
  • Loading branch information
alexcrichton authored Jun 15, 2023
1 parent a87a139 commit 68edec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wit-component/src/printing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ fn is_keyword(name: &str) -> bool {
| "float32" | "float64" | "char" | "resource" | "record" | "flags" | "variant" | "enum"
| "union" | "bool" | "string" | "option" | "result" | "future" | "stream" | "list"
| "shared" | "_" | "as" | "from" | "static" | "interface" | "tuple" | "implements"
| "world" | "import" | "export" | "default" | "pkg" | "self" | "package" => true,
| "world" | "import" | "export" | "default" | "pkg" | "self" | "package" | "with" => true,
_ => false,
}
}
Expand Down

0 comments on commit 68edec1

Please sign in to comment.