1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 17:19:38 +02:00

fix rendering of comments starting with #

This commit is contained in:
Raymond Hill 2018-02-28 19:16:19 -05:00
parent e5bb1eee1b
commit 273c80564a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -30,13 +30,13 @@ CodeMirror.defineMode("ubo-static-filtering", function() {
return null;
}
stream.eatSpace();
var c = stream.peek();
var c = stream.next();
if ( c === '!' ) {
stream.skipToEnd();
return 'comment';
}
if ( c === '#' ) {
c = stream.peek();
c = stream.next();
if ( c !== '#' && c !== '@' ) {
stream.skipToEnd();
return 'comment';