Currently, inline-type pos is just relative positions to its block-type when using mldoc/parseJson.
Using mldoc/inline-edn only parsing inline-type to get absolute pos.
A little troublesome to compute the absolute pos,
because there are several cases(e.g lib/syntax/block.ml:159) that parse modified contents (e.g. trim prefix indents or spaces) then Angstrom.pos can't get correct pos .
Currently, inline-type pos is just relative positions to its block-type when using
mldoc/parseJson
. Usingmldoc/inline-edn
only parsing inline-type to get absolute pos.A little troublesome to compute the absolute pos, because there are several cases(e.g
lib/syntax/block.ml:159
) that parse modified contents (e.g. trim prefix indents or spaces) thenAngstrom.pos
can't get correct pos .