2

The syntax highlighting in Script Failure because of Large Arrays is messed up. Here's a screenshot of the beginning of the poorly highlighted part.

Enter image description here

I'm not surprised that it thinks everything on the line after $#array is a comment. It's hard for a simple syntax highlighter to distinguish different uses of #. But why is everything after the regular expression on the second shown in red? It's stuck like this for most of the rest of the script, but I didn't include it all in the screen shot.

Is this a bug in the syntax highlighting, or a known limitation?

7
  • 4
    Bugs with Google Prettify should be reported directly to that project, see the central FAQ on syntax highlighting.
    – Martijn Pieters Mod
    Oct 10, 2014 at 16:50
  • 1
    OK, it looks like this is bug 57, and the ``$#` problem is bug 162
    – Barmar
    Oct 10, 2014 at 16:53
  • Right, so these are known issues then (limitations / bugs / unsupported language features / unicorn shortages). :-)
    – Martijn Pieters Mod
    Oct 10, 2014 at 16:55
  • There are a lot of questions like this on Meta SO for different languages...it's a shame we can't close them as duplicates of the Meta SE FAQ that @MartijnPieters linked to. Oct 10, 2014 at 19:50
  • @ThisSuitIsBlackNot: if it is becoming a FAQ here, then we create our own copy on this site.
    – Martijn Pieters Mod
    Oct 10, 2014 at 19:51
  • @MartijnPieters Smalltalk, Sass, Java...would it be inappropriate to copy the Meta SE FAQ word for word? Oct 10, 2014 at 20:23
  • @ThisSuitIsBlackNot: it's CC licensed, make it a Community Wiki and add a credit. :-) Follow the guidelines on the FAQ page too.
    – Martijn Pieters Mod
    Oct 10, 2014 at 21:07

0

Browse other questions tagged .