AdguardTeam / VscodeAdblockSyntax

Comprehensive extension to manage Adblock Syntax in VSCode: syntax highlighter, linter and much more. Available on the VSCode Marketplace.
https://marketplace.visualstudio.com/items?itemName=adguard.adblock
MIT License
70 stars 8 forks source link

The text colouring seems to think that "env_legacy" is not a valid "!#if" condition #52

Closed DandelionSprout closed 1 year ago

DandelionSprout commented 1 year ago

As of version 10September2022v1-Beta-Compilation of Dandelion Sprout's Annoyances List, the colouring seems to mark env_legacy with a dark red marker, as it seems to think it's unsupported:

image

!#if env_legacy was originally created by uBO to designate that entries should (or should not) be used in the so-called uBlock Origin Legacy builds, officially and strictly said to be for Firefox ≤58, but everyone knew the builds were being used for Pаle Mоon instead. And even with the latter browser's integrity reputation plummeting in the past couple years, and with uBO seemingly removing most info on env_legacy (if such info ever actually existed), it at least seems to still be a supported condition: https://github.com/gorhill/uBlock/blob/a559f5f2715c58fea4de09330cf3d06194ccc897/src/js/static-filtering-parser.js#L3121