def last.plain
yaml-for-bend@0.1.1.0 · scan.bend:672
import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base
import yaml-for-bend@0.1.1.0/token.bend as T
672
673
674def last.plain(out: List<&2, T.Token>) -> Bool:
675 match out:
676 case Nil{}:
677 False{}
678 case Con{t, rest}:
679 match t:
680 case T.Token{tok, start, end}:
681 match tok:
682 case T.ScalarTok{text, style}:
683 match style:
684 case T.Plain{}:
685 True{}
686 case T.Literal{}:
687 True{}
688 case T.Folded{}:
689 True{}
690 case _:
691 False{}
692 case _:
693 False{}