What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

This question already has an answer here:

It appears that Ruby class variables aren't fully highlighted on Stack Overflow:

class Foo
  @class_instance_var = 1 # fine
  @@class_var = 2         # not fully highlighted
end

The class instance variable gets full highlighting, but the double @ seems to throw the highlighter a bit.

Here's an SO question with this in action: Why @@class_variable syntax should be avoided in Ruby?

Update: 5th April

I've submitted an issue to the google prettify repository, with a patch that appears to solve the problem. Thanks to @CodyGray for the information.

share|improve this question

marked as duplicate by ben is uǝq backwards, Rory, Martijn Pieters, Lucifer, Mat Jun 15 '13 at 16:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Upvoted, since this happens even if you use language-specific syntax highlighting. –  Nightfirecat Apr 4 '13 at 16:18
    
Removed previous wrong comment of mine and its answer. –  Ebenezer Sklivvze Apr 5 '13 at 16:16

1 Answer 1

The Stack Exchange team outsources code highlighting to Google Prettify, so this bug will need to be filed with and corrected by the Prettify team.

Once Prettify is updated, the latest version can be deployed across the network. (You might need to ping one of them with a request to do so.)

It might be a simple fix. If you know how to do it yourself, you might go ahead and submit a patch.

Related:

share|improve this answer
    
Thanks, I've created an issue and submitted a patch on google prettify. –  joonty Apr 5 '13 at 9:13

Not the answer you're looking for? Browse other questions tagged .