Allow :: to end links regardless of parenthesis.
This commit is contained in:
@@ -259,7 +259,7 @@ fn impl_path_plain_end<'b, 'g, 'r, 's>(
|
||||
enable_search_option: bool,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
let current_depth = input.get_parenthesis_depth() - starting_parenthesis_depth;
|
||||
if enable_search_option && current_depth == 0 {
|
||||
if enable_search_option {
|
||||
let search_option = peek(tag("::"))(input);
|
||||
if search_option.is_ok() {
|
||||
return search_option;
|
||||
|
||||
Reference in New Issue
Block a user