From 3f9c5b9bc4ae7f99dde2acc2f5c4404167c72c6d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 17 Jun 2020 12:32:52 -0400 Subject: [PATCH] Fix regression in syntax highlighting Specifically, fix trailing comments improperly rendered as filter option. Regression from: - https://github.com/gorhill/uBlock/commit/6d8b310d9422#diff-fb99537d908d0afc8d76e7c98bbc9fea --- src/js/codemirror/ubo-static-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/codemirror/ubo-static-filtering.js b/src/js/codemirror/ubo-static-filtering.js index 33f4ae0c6..82a2cf5ca 100644 --- a/src/js/codemirror/ubo-static-filtering.js +++ b/src/js/codemirror/ubo-static-filtering.js @@ -165,7 +165,7 @@ CodeMirror.defineMode('ubo-static-filtering', function() { } if ( parserSlot >= parser.optionsSpan.i && - parserSlot < parser.rightSpaceSpan.i + parserSlot < parser.commentSpan.i ) { const bits = parser.slices[parserSlot]; let style;