Skip to content

PPYAMLGrammar doesn’t parse single-quoted scalars #66

@Rinzwind

Description

@Rinzwind

In the following, the last example returns a PPFailure:

PPYAMLGrammar parse: 'foo'. "⇒ 'foo'"
PPYAMLGrammar parse: '"foo"'. "⇒ 'foo'"
PPYAMLGrammar parse: '''foo'''. "⇒ a PPFailure"

I would expect the last example to also return 'foo'. See section ‘7.3.2. Single-Quoted Style’ in the YAML specification v1.2.2 or section ‘4.6.8. Single Quoted’ in the older v1.0 specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions