def doc.wrap.lex

emerging-eztoml@0.9.0.0 · main.bend:5605

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

5605# a quote opened a one-line string, or the state is rebuilt around that quote
5606def doc.wrap.lex(
5607  lex: Lex,
5608  bad: String,
5609  rows: List<&2, Val>,
5610  heads: List<&2, String>,
5611  here: List<&2, String>,
5612  parts: List<&2, String>,
5613  buf: List<&2, Char>,
5614  back: Lex,
5615  qkind: QKind,
5616  stack: List<&2, Ctx>,
5617  hold: Hold,
5618  uni: U32,
5619  left: U32,
5620  arrtab: Bool,
5621  lead: Bool
5622) -> Mode:
5623  match lex:
5624    case LQ{}:
5625      doc.scan.hold(hold, lead, qkind, bad, rows, heads, here, parts, buf, back, stack,
5626        uni, left, arrtab)
5627    case other:
5628      MScan{St{bad, rows, heads, here, parts, buf, other, back, qkind, stack, hold,
5629        uni, left, arrtab, lead}}

Uses (13)

Used by (1)