Open poke1024 opened 9 months ago
By the way, running findIndentation
on the code gives very reasonable results, namely { '11': 1, '24': 1, '28': -1, '41': 1, '42': -2 }
, which are exactly the expected indents and dedents.
Interesting...thanks for reporting. Might be a problem with space skipping, but I'll investigate.
FYI this looks superficially similar to my issue in #465.
Here is an example modified from https://github.com/ohmjs/ohm/blob/main/examples/indentation-sensitive/index.js, that I would expect to work. Note that
Block
has been changed to takeExpr+
instead of a singleExpr
.The first two examples in
examples
work, however the third (rather trivial) example gives this error:Similarly, any actual dedent onto a previous level seems to issue this problem.