mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
Fix syntax-highlighting of regex-based filters
Regression from: - https://github.com/gorhill/uBlock/commit/6d8b310d9422#diff-fb99537d908d0afc8d76e7c98bbc9fea
This commit is contained in:
parent
4dc920484c
commit
001e1ea21e
@ -138,7 +138,7 @@ CodeMirror.defineMode('ubo-static-filtering', function() {
|
||||
) {
|
||||
if ( parser.patternIsRegex() ) {
|
||||
stream.pos = parser.slices[parser.optionsAnchorSpan.i+1];
|
||||
parserSlot += parser.optionsAnchorSpan.i;
|
||||
parserSlot = parser.optionsAnchorSpan.i;
|
||||
return 'variable regex';
|
||||
}
|
||||
if ( (parser.slices[parserSlot] & (parser.BITAsterisk | parser.BITCaret)) !== 0 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user