Scan.json.tok: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/scan.bend as Scan Lines 420-438 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=420&end_line=438 import Base import yaml-for-bend@0.1.1.0/token.bend as T # The token before this one: whether it was a JSON-like node (a quoted # scalar or a flow collection), after which ":" is a value indicator even # without a space. def json.tok(t: T.Tok) -> Bool: match t: case T.ScalarTok{text, style}: match style: case T.Single{}: True{} case T.Double{}: True{} case _: False{} case T.FSeqEnd{}: True{} case T.FMapEnd{}: True{} case _: False{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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