Skip to content

Commit

Permalink
add permissions to adblock.yaml-tmlanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Nov 7, 2023
1 parent 77669b2 commit fed3324
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions syntaxes/adblock.yaml-tmlanguage
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ repository:
name: keyword.other.adblock
"4":
name: string.unquoted.adblock
- match: "(removeparam|queryprune)(=)(~)?(((\\\\,)|[^,])+)"
- match: "(removeparam|queryprune)(=)?(~)?(((\\\\,)|[^,])+)?"
name: keyword.other.adblock
captures:
"1":
Expand All @@ -458,7 +458,7 @@ repository:
name: keyword.operator.adblock
- match: ".+"
name: invalid.illegal.method-value
- match: "(referrerpolicy)(=)((\\w|-)+)"
- match: "(referrerpolicy)(=)?((\\w|-)+)?"
captures:
"1":
name: keyword.other.adblock
Expand All @@ -470,6 +470,14 @@ repository:
name: string.unquoted.adblock
- match: "~|\\|.+"
name: invalid.illegal.referrerpolicy-value
- match: "(permissions)(=)?(((\\\\,)|[^,])+)?"
captures:
"1":
name: keyword.other.adblock
"2":
name: keyword.operator.adblock
"3":
name: string.unquoted.adblock
- match: "(inline-script|inline-font|mp4|empty|badfilter|genericblock|generichide|network|popup|popunder|important|replace|stealth)"
name: keyword.other.adblock
- match: "(~?)(xhr|first-party|third-party|match-case|elemhide|content|jsinject|urlblock|document|image|stylesheet|script|object-subrequest|object|font|media|subdocument|xmlhttprequest|websocket|other|webrtc|ping|extension|all|1p|3p|css|frame|ghide|ehide|shide|specifichide)"
Expand Down

0 comments on commit fed3324

Please sign in to comment.