nvim-neorg / rust-norg

A robust parser for Norg for tools that don't use tree-sitter.
11 stars 3 forks source link

Should we add a new type to represent the entire list #10

Open evpeople opened 3 days ago

evpeople commented 3 days ago

Currently, each item in the list is a NorgASTFlat::NestableDetachedModifier. To get the entire list, you need to traverse backward until you find an element that is not a NorgASTFlat::NestableDetachedModifier (I am currently trying this approach). Would adding another layer in NorgASTFlat be more efficient? Or should we add another stage 4?