Skip to content

Commit

Permalink
fix(esupports.hop): broken definitions and footnotes (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 27, 2023
1 parent 22ffa41 commit 94cf7d2
Showing 1 changed file with 35 additions and 41 deletions.
76 changes: 35 additions & 41 deletions lua/neorg/modules/core/esupports/hop/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -472,34 +472,31 @@ module.public = {

[{ "definition", "footnote" }] = string.format(
[[
[(single_%s
[(strong_carryover_set
(%s_list
(strong_carryover_set
(strong_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))
(weak_carryover_set
(#eq? @tag_name "name")))?
.
[(single_%s
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))]?
(#eq? @tag_name "name")))?
(single_%s_prefix)
title: (paragraph_segment) @title)
(multi_%s
[(strong_carryover_set
(strong_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))
(weak_carryover_set
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))]?
(#eq? @tag_name "name")))?
(multi_%s_prefix)
title: (paragraph_segment) @title)]
title: (paragraph_segment) @title)])
]],
neorg.lib.reparg(parsed_link_information.link_type, 4)
neorg.lib.reparg(parsed_link_information.link_type, 5)
),
_ = string.format(
[[
Expand Down Expand Up @@ -656,34 +653,31 @@ module.private = {
]],
[{ "definition", "footnote" }] = string.format(
[[
[(single_%s
[(strong_carryover_set
(strong_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))]?
(single_%s_prefix)
title: (paragraph_segment) @title)
(multi_%s
[(strong_carryover_set
(strong_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))]?
(multi_%s_prefix)
title: (paragraph_segment) @title)]
(%s_list
(strong_carryover_set
(strong_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))?
.
[(single_%s
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))?
(single_%s_prefix)
title: (paragraph_segment) @title)
(multi_%s
(weak_carryover_set
(weak_carryover
name: (tag_name) @tag_name
(tag_parameters) @title
(#eq? @tag_name "name")))?
(multi_%s_prefix)
title: (paragraph_segment) @title)])
]],
neorg.lib.reparg(parsed_link_information.link_type, 4)
neorg.lib.reparg(parsed_link_information.link_type, 5)
),
_ = string.format(
[[
Expand Down

0 comments on commit 94cf7d2

Please sign in to comment.