Skip to content

Commit

Permalink
fix attribute with comma
Browse files Browse the repository at this point in the history
  • Loading branch information
H2Sxxa committed Jul 21, 2024
1 parent 69c7706 commit 5c47b7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flutter_ffi_plugin/bin/src/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -800,11 +800,12 @@ Future<Map<String, Map<String, List<MarkedMessage>>>> 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;
Expand Down

0 comments on commit 5c47b7c

Please sign in to comment.