Unless there's a space between the regex's i flag and ? that begins the ternary operation, Perl highlights the rest of the file as a regex. Even GitHub's trash highlighter does this apparently.
Tellingly, the following variation is mishighlighted the same way:
Consider the following legal Perl program:
Unless there's a space between the regex's
i
flag and?
that begins the ternary operation, Perl highlights the rest of the file as a regex. Even GitHub's trash highlighter does this apparently.Tellingly, the following variation is mishighlighted the same way: