Skip to content

The ns-reserved-directive production consumes comments #298

Open
@Thom1729

Description

@Thom1729

Because ns-directive-parameter is defined as simply ns-char+, it will happily consume comments at the end of the line. E.g, in:

%FOO bar # baz

The ns-reserved-directive production will match all of FOO bar # baz. This is probably not the intent.

The practical implications of this are almost nil, since the parsing process should discard both comments and (with a warning) reserved directives. But it could also be easily fixed by redefining ns-directive-parameter to [ lookahead ≠ '#' ] ns-char+.

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