1
0
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:
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

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