orthecreedence / highlight-lisp

A Common Lisp syntax highlighter written in Javascript
77 stars 7 forks source link

Number behind comment #4

Closed lamberta closed 11 years ago

lamberta commented 11 years ago

Given the following:

(universal-time-to-rfc822 (get-universal-time)) ;=> "Tue, 09 Apr 2013 14:04:52 +0800"

The comment is correctly grayed out except of the 09 and 2013, which renders red using the github theme.

I've been putting this library through the ringer lately and it's been looking great, thanks for your work!

orthecreedence commented 11 years ago

Had a few minutes to check this out, I believe it's fixed now. Instead of trying to declassify number items in comments/strings, I just use CSS' !important operator to override them. this works well, except I forgot the case where there's a number inside a string inside a comment (like your above code).

Do a pull and let me know if it works...and thanks for the bug report!

lamberta commented 11 years ago

That does it, thanks!