mirror of https://github.com/gorhill/uBlock.git
fix rendering of comments starting with `#`
This commit is contained in:
parent
e5bb1eee1b
commit
273c80564a
|
@ -30,13 +30,13 @@ CodeMirror.defineMode("ubo-static-filtering", function() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
stream.eatSpace();
|
stream.eatSpace();
|
||||||
var c = stream.peek();
|
var c = stream.next();
|
||||||
if ( c === '!' ) {
|
if ( c === '!' ) {
|
||||||
stream.skipToEnd();
|
stream.skipToEnd();
|
||||||
return 'comment';
|
return 'comment';
|
||||||
}
|
}
|
||||||
if ( c === '#' ) {
|
if ( c === '#' ) {
|
||||||
c = stream.peek();
|
c = stream.next();
|
||||||
if ( c !== '#' && c !== '@' ) {
|
if ( c !== '#' && c !== '@' ) {
|
||||||
stream.skipToEnd();
|
stream.skipToEnd();
|
||||||
return 'comment';
|
return 'comment';
|
||||||
|
|
Loading…
Reference in New Issue