Scan.last.plain: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/scan.bend as Scan Lines 672-693 of yaml-for-bend@0.1.1.0/scan.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/scan.bend&start_line=672&end_line=693 import Base import yaml-for-bend@0.1.1.0/token.bend as T # Whether the last token was a plain or block scalar, which end past the # blanks after them, so a "#" here follows a blank. def last.plain(out: List<&2, T.Token>) -> Bool: match out: case Nil{}: False{} case Con{t, rest}: match t: case T.Token{tok, start, end}: match tok: case T.ScalarTok{text, style}: match style: case T.Plain{}: True{} case T.Literal{}: True{} case T.Folded{}: True{} case _: False{} case _: False{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/token.bend&name=Style https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/token.bend&name=Tok https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/token.bend&name=Token