From 77669b2b4840554962613768c01109dc165baa0d Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Tue, 7 Nov 2023 20:28:04 +0200 Subject: [PATCH] fix no-value usage of several modifiers --- syntaxes/adblock.yaml-tmlanguage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntaxes/adblock.yaml-tmlanguage b/syntaxes/adblock.yaml-tmlanguage index 017b9b2..2ad2b35 100644 --- a/syntaxes/adblock.yaml-tmlanguage +++ b/syntaxes/adblock.yaml-tmlanguage @@ -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": @@ -409,7 +409,7 @@ repository: match: ";" - name: string.unquoted.adblock match: "[^;]*" - - match: "(removeheader)(=)(((\\\\,)|[^,])+)" + - match: "(removeheader)(=)?(((\\\\,)|[^,])+)?" name: keyword.other.adblock captures: "1": @@ -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