Fix syntax-highlighting of regex-based filters

Regression from:
- https://github.com/gorhill/uBlock/commit/6d8b310d9422#diff-fb99537d908d0afc8d76e7c98bbc9fea
This commit is contained in:
Raymond Hill 2020-06-16 18:56:26 -04:00
parent 4dc920484c
commit 001e1ea21e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {