Fix handling capitalization in macro names.
All checks were successful
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded

This commit is contained in:
Tom Alexander
2023-10-08 16:51:44 -04:00
parent 9bdec391f1
commit f07d041eb9
5 changed files with 34 additions and 14 deletions

View File

@@ -3077,20 +3077,20 @@ fn compare_org_macro<'b, 's>(
rust,
(
EmacsField::Required(":key"),
|r| Some(r.macro_name),
|r| Some(r.get_key()),
compare_property_quoted_string
),
(
EmacsField::Required(":value"),
|r| Some(r.macro_value),
|r| Some(r.value),
compare_property_quoted_string
),
(
EmacsField::Required(":args"),
|r| if r.macro_args.is_empty() {
|r| if r.args.is_empty() {
None
} else {
Some(r.get_macro_args())
Some(r.get_args())
},
compare_property_list_of_quoted_string
)