Remove "org_" prefix from list_allow_alphabetical.
These settings are exclusively for parsing org-mode so the prefix is redundant.
This commit is contained in:
parent
3a422e6435
commit
f1261ddce8
@ -16,7 +16,7 @@ pub struct GlobalSettings<'g, 's> {
|
|||||||
/// Set to true to allow for plain lists using single letters as the bullet in the same way that numbers are used.
|
/// Set to true to allow for plain lists using single letters as the bullet in the same way that numbers are used.
|
||||||
///
|
///
|
||||||
/// Corresponds to the org-list-allow-alphabetical elisp variable.
|
/// Corresponds to the org-list-allow-alphabetical elisp variable.
|
||||||
pub org_list_allow_alphabetical: bool,
|
pub list_allow_alphabetical: bool,
|
||||||
|
|
||||||
/// How many spaces a tab should be equal to.
|
/// How many spaces a tab should be equal to.
|
||||||
///
|
///
|
||||||
@ -38,7 +38,7 @@ impl<'g, 's> GlobalSettings<'g, 's> {
|
|||||||
},
|
},
|
||||||
in_progress_todo_keywords: BTreeSet::new(),
|
in_progress_todo_keywords: BTreeSet::new(),
|
||||||
complete_todo_keywords: BTreeSet::new(),
|
complete_todo_keywords: BTreeSet::new(),
|
||||||
org_list_allow_alphabetical: false,
|
list_allow_alphabetical: false,
|
||||||
tab_width: 8,
|
tab_width: 8,
|
||||||
odd_levels_only: HeadlineLevelFilter::OddEven,
|
odd_levels_only: HeadlineLevelFilter::OddEven,
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ fn counter<'b, 'g, 'r, 's>(
|
|||||||
context: RefContext<'b, 'g, 'r, 's>,
|
context: RefContext<'b, 'g, 'r, 's>,
|
||||||
input: OrgSource<'s>,
|
input: OrgSource<'s>,
|
||||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||||
if context.get_global_settings().org_list_allow_alphabetical {
|
if context.get_global_settings().list_allow_alphabetical {
|
||||||
alt((
|
alt((
|
||||||
recognize(one_of(
|
recognize(one_of(
|
||||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||||
|
Loading…
Reference in New Issue
Block a user