diff --git a/org_mode_samples/lesser_element/keyword/affiliated_keywords_short_version.org b/org_mode_samples/lesser_element/keyword/affiliated_keywords_short_version.org new file mode 100644 index 00000000..4de56bea --- /dev/null +++ b/org_mode_samples/lesser_element/keyword/affiliated_keywords_short_version.org @@ -0,0 +1,7 @@ +# This test is to prove that the parser works with affiliated keywords that have both a shorter and longer version. + +#+results: +#+result: +#+begin_latex +\foo +#+end_latex diff --git a/src/parser/keyword.rs b/src/parser/keyword.rs index 3c853b7c..466633cb 100644 --- a/src/parser/keyword.rs +++ b/src/parser/keyword.rs @@ -26,8 +26,8 @@ use crate::parser::util::start_of_line; use crate::types::Keyword; const ORG_ELEMENT_AFFILIATED_KEYWORDS: [&'static str; 13] = [ - "caption", "data", "header", "headers", "label", "name", "plot", "resname", "result", - "results", "source", "srcname", "tblname", + "caption", "data", "headers", "header", "label", "name", "plot", "resname", "results", + "result", "source", "srcname", "tblname", ]; const ORG_ELEMENT_DUAL_KEYWORDS: [&'static str; 2] = ["caption", "results"];