AdguardTeam / AdguardTeam/AdguardBrowserExtension

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

Aperta
#2,877 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Bug Priority: P4 Status: In Progress
Lingua principale
TypeScript
Stelle
4.4k
Fork
449
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.