Skip to content

Commit 26a1f31

Browse files
authored
Updated to wit keywords
1 parent 03b3108 commit 26a1f31

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wit/wit.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,10 @@ func escape(name string) string {
531531

532532
// A map of all [WIT keywords].
533533
//
534-
// [WIT keywords]: https://github.com/bytecodealliance/wasm-tools/blob/main/crates/wit-parser/src/ast/lex.rs#L528-L578
534+
// [WIT keywords]: https://github.com/bytecodealliance/wasm-tools/blob/main/crates/wit-parser/src/ast/lex.rs#L530-L581
535535
var witKeywords = map[string]bool{
536536
"as": true,
537+
"async": true,
537538
"bool": true,
538539
"borrow": true,
539540
"char": true,
@@ -572,7 +573,7 @@ var witKeywords = map[string]bool{
572573
"u8": true,
573574
"use": true,
574575
"variant": true,
575-
"wit": true,
576+
"with": true,
576577
"world": true,
577578
}
578579

0 commit comments

Comments
 (0)