I need to parse the affiliated keywords during parsing because it relies on the global settings.
This commit is contained in:
@@ -1,7 +1,23 @@
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
use crate::context::GlobalSettings;
|
||||
use crate::types::AffiliatedKeywordValue;
|
||||
use crate::types::AffiliatedKeywords;
|
||||
use crate::types::Keyword;
|
||||
use crate::types::Object;
|
||||
use crate::types::PlainList;
|
||||
|
||||
pub(crate) fn parse_affiliated_keywords<'g, 's>(
|
||||
global_settings: &'g GlobalSettings<'g, 's>,
|
||||
input: Vec<Keyword<'s>>,
|
||||
) -> AffiliatedKeywords<'s> {
|
||||
let mut ret = BTreeMap::new();
|
||||
for kw in input.into_iter() {
|
||||
// foo
|
||||
}
|
||||
AffiliatedKeywords { keywords: ret }
|
||||
}
|
||||
|
||||
// pub struct AffiliatedKeyword<'s> {
|
||||
// name: &'s str,
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user