Skip to content

Commit

Permalink
fix(concealer): disable assertion for prefixes until parser changes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom authored Jun 6, 2023
1 parent 45efa0e commit 92aa737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ local function get_ordered_index(bufid, prefix_node)
-- TODO: calculate levels in one pass, since treesitter API implementation seems to have ridiculously high complexity
local _, _, level = get_node_position_and_text_length(bufid, prefix_node)
local header_node = prefix_node:parent()
assert(header_node:type() .. "_prefix" == prefix_node:type())
-- TODO: fix parser: `(ERROR)` on standalone prefix not followed by text, like `- `
-- assert(header_node:type() .. "_prefix" == prefix_node:type())
local sibling = header_node:prev_named_sibling()
local count = 1

Expand Down

0 comments on commit 92aa737

Please sign in to comment.