mirror of https://github.com/gorhill/uBlock.git
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() ) {
|
if ( parser.patternIsRegex() ) {
|
||||||
stream.pos = parser.slices[parser.optionsAnchorSpan.i+1];
|
stream.pos = parser.slices[parser.optionsAnchorSpan.i+1];
|
||||||
parserSlot += parser.optionsAnchorSpan.i;
|
parserSlot = parser.optionsAnchorSpan.i;
|
||||||
return 'variable regex';
|
return 'variable regex';
|
||||||
}
|
}
|
||||||
if ( (parser.slices[parserSlot] & (parser.BITAsterisk | parser.BITCaret)) !== 0 ) {
|
if ( (parser.slices[parserSlot] & (parser.BITAsterisk | parser.BITCaret)) !== 0 ) {
|
||||||
|
|
Loading…
Reference in New Issue