From fed33245b1eacff2dfc5eb0b9fca26f18be93dfb Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Tue, 7 Nov 2023 20:37:57 +0200 Subject: [PATCH] add permissions to adblock.yaml-tmlanguage --- syntaxes/adblock.yaml-tmlanguage | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/syntaxes/adblock.yaml-tmlanguage b/syntaxes/adblock.yaml-tmlanguage index 2ad2b35..7f26b7f 100644 --- a/syntaxes/adblock.yaml-tmlanguage +++ b/syntaxes/adblock.yaml-tmlanguage @@ -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": @@ -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 @@ -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)"