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
This commit is contained in:
Raymond Hill 2020-06-17 12:32:52 -04:00
parent d9dc098d58
commit 3f9c5b9bc4
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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;