Skip to content

Commit

Permalink
Update options.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jul 28, 2023
1 parent 95f2a90 commit 76c44a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions myst_parser/parsers/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand All @@ -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 = []
Expand Down

0 comments on commit 76c44a9

Please sign in to comment.