Page 1 of 1

FIXED: [12.00b3] Highlighting bugs

Posted: 10 Feb 2017 20:10
by pjj
There are two problems with highlighting in the following code sample:

Code: Select all

<script type="text/javascript">
'use strict';
$('p').on('focusin', function() {
    $(this).prepend('<ul></ul>');
});
/*
$('p').on('focusout', function() {
    alert('yay!');
});
*/
</script>
First, commented block isn't painted as comment. Secondly, single quote is erroneously painted as non-paired, while in fact, it is (this also happens with e.g. brackets.) File in question has .php extension and uses HTML highlighter.
js-hilite-bug.png
js-hilite-bug.png (13.99 KiB) Viewed 5849 times
As you might see, with

Code: Select all

    $(this).prepend();
commented block is highlighted as such.

Re: [12.00b3] Highlighting bugs

Posted: 11 Feb 2017 16:11
by Rickard Johansson
This one was actually a bit tricky to find, but I finally got it. It's been fixed 8)