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:
parent
e5bb1eee1b
commit
273c80564a
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user