type Mode
import ezsys@0.1.0.0/src/text.bend as Textimport Base
10# where the scan is: in plain text, passing over the rest of an open
11# delimiter, inside a key, or passing over the rest of a close delimiter
12type Mode is Data:
13 Plain{}
14 Opening{left: Nat}
15 InKey{key: String}
16 Closing{left: Nat}