Skip to content

Commit

Permalink
fix no-value usage of several modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Nov 7, 2023
1 parent db821cf commit 77669b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntaxes/adblock.yaml-tmlanguage
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ repository:
"3":
patterns:
- include: "#dnsClientsPipeSeparated"
- match: "(redirect|redirect-rule|csp|cookie)(=)(((\\\\,)|[^,])+)"
- match: "(redirect|redirect-rule|csp|cookie)(=)?(((\\\\,)|[^,])+)?"
name: keyword.other.adblock
captures:
"1":
Expand All @@ -409,7 +409,7 @@ repository:
match: ";"
- name: string.unquoted.adblock
match: "[^;]*"
- match: "(removeheader)(=)(((\\\\,)|[^,])+)"
- match: "(removeheader)(=)?(((\\\\,)|[^,])+)?"
name: keyword.other.adblock
captures:
"1":
Expand Down Expand Up @@ -470,7 +470,7 @@ repository:
name: string.unquoted.adblock
- match: "~|\\|.+"
name: invalid.illegal.referrerpolicy-value
- match: "(inline-script|inline-font|mp4|empty|badfilter|genericblock|generichide|network|popup|popunder|important|cookie|csp|replace|stealth|removeparam|queryprune)"
- 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)"
name: keyword.other.adblock
Expand Down

0 comments on commit 77669b2

Please sign in to comment.