def lex.other

bend-lint-rules@0.2.0.0 · layout/format.bend:615

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

615def lex.other(class: Class, +c: Char, +rest: String) -> Scan:
616  match class:
617    case IsBlank{}:
618      Blank{rest, c, 1}
619    case IsHead{}:
620      ident(scan(~is_ident_at, rest, rest, is_ident_at(rest), char(c), 1, c))
621    case IsDigit{}:
622      number(scan(~is_digit_at, rest, rest, is_digit_at(rest), char(c), 1, c))
623    case IsOther{}:
624      fixed(char(c), 1, rest, c, single(c))

Uses (12)

Used by (1)