AdguardTeam / AdguardTeam/AdguardBrowserExtension

Syntax highlighting is not applied if a rule has `[$***]` modifier

Offen
#2,877 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Bug Priority: P4 Status: In Progress
Vorherrschende Sprache
TypeScript
Sterne
4.4k
Forks
449
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Please answer the following questions for yourself before submitting an issue

- [X] Filters were updated before reproducing an issue
- [X] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [X] I checked to make sure that this issue has not already been filed

### AdGuard Extension version

4.4.1

### Browser version

Chrome 126.0.6478.128

### OS version

Windows 10 x64

### Ad Blocking

AdGuard Base filter

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### What Stealth Mode options do you have enabled?

_No response_

### Issue Details

Steps to reproduce:
Add these rules and compare the highlighting

```
[$path=/aaa]example.com#%#//scriptlet('json-prune')
example.com#%#//scriptlet('json-prune')
```

### Expected Behavior

Highlighting is applied to all valid rules.

### Actual Behavior

Highlighting is not applied to the rule with modifier

![image](https://github.com/user-attachments/assets/b837e25f-ce29-44cf-a21e-1aff4ba92320)

### Screenshots

_No response_

### Additional Information

_No response_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.