Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#27886 closed defect (bug) (invalid)

Code section highlight problem, doesn't ignore quotes in comments

Reported by: rabbitaaron's profile rabbitaaron Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: General Keywords:
Focuses: Cc:


[code lang='javascript']
var shouldNotBeHighlighted = 'hello,world';
// problem is here, you don't ignore the single quote inside this comment
console.log('hello,world' + shouldNotBeHighlighted + 'helloworld!');
// so that the syntax highlight is messed up!!

I was on when I found this bug.
Just add a new post and copy paste then you'll see.

Attachments (1)

bugs.png (8.7 KB) - added by rabbitaaron 9 years ago.

Download all attachments as: .zip

Change History (2)

9 years ago

#1 @ocean90
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This should be reported to

Note: See TracTickets for help on using tickets.