Skip to content

Parser: Backslash in HTML Text Content leads to unexpected token error #633

@marcoroth

Description

@marcoroth

Content:

<p class="help">Regexp with captures, must consume whole string like: <kbd>\Ahttps?://github.com/+([^/]+).*\z</kbd></p>

Parser Errors:

Unexpected token. Expected: `TOKEN_ERB_START, TOKEN_HTML_DOCTYPE, TOKEN_HTML_COMMENT_START, TOKEN_IDENTIFIER, TOKEN_WHITESPACE, TOKEN_NBSP, TOKEN_AT, or TOKE`, found: `TOKEN_BACKSLASH`.

Playground Repro


From app/views/domains/edit.html.erb in lobsters/lobsters:

https://github.com/lobsters/lobsters/blob/75f9a53077d5aeaeadbb8271def0479dd8fcd761/app/views/domains/edit.html.erb#L11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcparser

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions