Skip to content

YAML syntax is wrong (it's more like shell, than C) #4

@bramp

Description

@bramp

Currently yaml is configured like so:

const SYNTAXES: [(&str, &[SyntaxRule]); 15] = [
    ..snip..
    ("yaml", &C),
]

const C: [SyntaxRule; 3] = [
    LineComment(b"//"),
    BlockComment(b"/*", b"*/"),
    String(b"\""),
];

The YAML spec says the only valid comment symbol is #, and that's a single line. I think the correct syntax would be:

const YAML: [SyntaxRule; 2] = [
    LineComment(b"#"),
    String(b"\""),
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions