Skip to content

Newer JS operators ("?.", "??") break indenting/coloring in code editor #3115

@istarogh

Description

@istarogh

In Greasemonkey's built-in code editor, using the optional chaining operator (?.) or the nullish coalescing operator (??) at any point in a script breaks indentation and syntax coloring for the rest of the script. The exact way in which it breaks depends on the specifics of the surrounding expression; I've seen this cause the rest of the script to be treated as a comment, a string, or a template literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions