HTML JS syntax highlighting with backtick comment incorrect (Bug)
Documents in Gitlab the have the following structure are highlighted the wrong way.
I think it just confuses the syntax highlighter. HTML -> JS -> Comment -> backtick (grave accent) -> HTML tag -> quotes.
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<script>
var js_here = true;
// Comment in JS
// Backtick comment: `all fine`
// Backtick comment with html: `<p></p>` Something already seems off
// Backtick comment with html and quotes `<p class="test">` Now everything is wrong.
// all text below is also in the quote or tag
// Even JS code
var js_here = false;
function test() {
var x = 5;
var y = x;
}
</script>
</head>
<body>
</body>
</html>
Screenshot for future reference:
Same with light version
Edited by Ralph Bisschops