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.
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.