From 76c44a97cc489b55bffa776f372ac69b9ac6a220 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 28 Jul 2023 03:10:16 +0200 Subject: [PATCH] Update options.py --- myst_parser/parsers/options.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/myst_parser/parsers/options.py b/myst_parser/parsers/options.py index 446c42c5..cf2a6f40 100644 --- a/myst_parser/parsers/options.py +++ b/myst_parser/parsers/options.py @@ -226,7 +226,7 @@ def tokenize(text: str) -> Iterable[Token]: if ch in ("'", '"'): yield _scan_flow_scalar(stream, cast(Literal['"', "'"], ch), is_key=True) else: - yield _parse_plain_scalar(stream, is_key=True) + yield _scan_plain_scalar(stream, is_key=True) _scan_to_next_token(stream) @@ -250,7 +250,7 @@ def tokenize(text: str) -> Iterable[Token]: elif ch in ("'", '"'): yield _scan_flow_scalar(stream, cast(Literal['"', "'"], ch), is_key=False) else: - yield _parse_plain_scalar(stream, is_key=False) + yield _scan_plain_scalar(stream, is_key=False) def _scan_to_next_token(stream: StreamBuffer) -> None: @@ -272,7 +272,7 @@ def _scan_to_next_token(stream: StreamBuffer) -> None: found = True -def _parse_plain_scalar( +def _scan_plain_scalar( stream: StreamBuffer, is_key: bool = False ) -> KeyToken | ValueToken: chunks = []