Skip to content

Comments on title: headers cause parse errors #99

@desplesda

Description

@desplesda

What is the current behavior?

Comments on title: headers cause parse errors.

Yarn Spinner supports comment in the header section of a node. These comments may be on their own line, or following a header. However, if a comment follows a title header, the compiler produces a syntax error.

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

The following code causes a syntax error:

title: Start // this comment causes a parser error
// this comment is ok
example: woo // this comment is ok also
---
Test
===

What is the expected behavior?

Comments should be legal on any header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething not working as intendedCoreIssues concerning the compiler or engine-independent code in the YarnSpinner repo

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions