def read.fin.lex

emerging-eztoml@0.9.0.0 · main.bend:4571

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

4571# a bare token, an empty string or a closed multiline string still open at the end
4572def read.fin.lex(lex: Lex, st: St) -> St:
4573  match lex:
4574    case LBare{}:
4575      bare.finish(st, ' ', False{})
4576    case LDate{}:
4577      bare.finish(st, ' ', False{})
4578    case LQ2{}:
4579      val.take(st, VStr{""})
4580    case LMqEnd{}:
4581      str.fin(st)
4582    case _:
4583      st

Uses (8)

Used by (1)