Skip to content

Commit

Permalink
Support for operators
Browse files Browse the repository at this point in the history
Handle following cases:

```
||google.com^$method=post|get
||example.com^$method=~get
```
  • Loading branch information
scripthunter7 authored Feb 13, 2023
1 parent 3d801c8 commit c6f5ae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syntaxes/adblock.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,10 @@
"match": "(?i)(connect|delete|get|head|options|patch|post|put)",
"name": "string.unquoted.adblock"
},
{
"match": "~|\\|",
"name": "keyword.operator.adblock"
},
{
"match": ".+",
"name": "invalid.illegal.method-value"
Expand Down

0 comments on commit c6f5ae1

Please sign in to comment.