Skip to content

Commit

Permalink
objc: fix (keyword :a)
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon committed Aug 27, 2024
1 parent 644ff1b commit 57ea2de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion impls/objc/core.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ + (NSDictionary *)ns {
return wrap_tf([args[0] isKindOfClass:[MalSymbol class]]);
},
@"keyword": ^(NSArray *args){
return [NSString stringWithFormat:@"\u029e%@", args[0]];
if (string_Q(args[0])) {
return [NSString stringWithFormat:@"\u029e%@", args[0]];
} else {
return args[0];
}
},
@"keyword?": ^(NSArray *args){
return wrap_tf([args[0] isKindOfClass:[NSString class]] &&
Expand Down

0 comments on commit 57ea2de

Please sign in to comment.