David
David
There are some modifiers that have an equivalent, but it is not just an alias. After parsing, the modifiers are represented in AST, where a separate property is reserved for...
We should detect incompatible rules during the linting process and offer converted rules as fixes, if possible. In order to do this, we need a compatibility table / converter. Theoretically,...
Currently redirect resouces are simply checked with a regexp, but if necessary, we can introduce a separate compatibility table for them in the future. At the moment, we do not...
If I understand correctly, the following rule is invalid in uBO syntax: ```adblock example.org##+js(setTimeout-defuser.js, [native code], 8000):matches-path(/page) ``` One test case uses this rule: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/tsurlfilter/test/rules/rule-converter.test.ts#L569 Reference: - from https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg >...
Reference: https://github.com/AdguardTeam/Scriptlets/issues/237
Tester should throw an error if the TMLanguage file is not structured correctly or if any regular expression is syntactically incorrect. For both scenarios, the error message should be explicit...
Based on the TMLanguage, it is possible to tokenize various inputs and then compare them with a token list. This makes [test_rules.txt](https://github.com/ameshkov/VscodeAdblockSyntax/blob/master/test_rules.txt) unnecessary in practice (good for a demo at...
Currently, quick fix supports two things: 1. If the filtering rule cannot be parsed, the quick fix offers the possibility to turn off the linter for that filtering rule 2....