diff --git a/flutter_ffi_plugin/bin/src/message.dart b/flutter_ffi_plugin/bin/src/message.dart index 2fca5cba..e8201b5f 100644 --- a/flutter_ffi_plugin/bin/src/message.dart +++ b/flutter_ffi_plugin/bin/src/message.dart @@ -800,11 +800,12 @@ Future>>> analyzeMarkedMessages( markType = MarkType.rustSignalBinary; } + // find [RINF:RUST-ATTRIBUTE(...)] var attr = attrExp.stringMatch(statement); if (attr != null) { markedMessages[subPath]![filename]!.add(MarkedMessage( MarkType.rustAttribute, - "--prost_opt=type_attribute=$filename.$messageName=$attr", + "--prost_opt=type_attribute=$filename.$messageName=${attr.replaceAll(",", "\\,")}", -1, )); continue;