Open GoogleCodeExporter opened 9 years ago
Of course no sooner do I post this that I find a bug. If the last line doesn't
end with a line break then it doesn't get colored.. and apparently the url line
test didn't work and I'm blind.
So simply, change the var lines line to:
var lines = job.sourceCode.match(/[^\r\n]*([\r\n]+|$)/g),
Change the attribute pattern to:
[ /^\s*([^:=]+)\s*([=:])\s*(.+)/, PR['PR_ATTRIB_NAME'], PR['PR_PUNCTUATION'],
PR['PR_PLAIN'] ]
And change the end of the test block to:
url: http://blah.com</code>
</pre>
I've attached a file with the updates.
Original comment by michaeld...@gmail.com
on 20 Jun 2012 at 3:11
Attachments:
I think the comment regex should be:
[ /^\s*([;#][^\n]*)/, PR['PR_COMMENT'] ],
Or else you don't match lines with just a hash character.
Original comment by bolinf...@gmail.com
on 24 Sep 2014 at 9:50
Original issue reported on code.google.com by
michaeld...@gmail.com
on 20 Jun 2012 at 2:37Attachments: