def after

bolt@1.27.0.0 · src/syntax/lex.bend:173

import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import Base

173# the mode after a char that continued the token
174def after(mm: Mode, cls: Class) -> Mode:
175  match mm cls:
176    case InStr{} CQuote{}:
177      Fresh{}
178    case InStr{} CBack{}:
179      InStrEsc{}
180    case InStrEsc{} c:
181      InStr{}
182    case InChar{} CTick{}:
183      Fresh{}
184    case InChar{} CBack{}:
185      InCharEsc{}
186    case InCharEsc{} c:
187      InChar{}
188    case m c:
189      m

Uses (2)

Used by (1)