diff --git a/syntaxes/adblock.tmLanguage.json b/syntaxes/adblock.tmLanguage.json index 2bd2c28..73cde98 100644 --- a/syntaxes/adblock.tmLanguage.json +++ b/syntaxes/adblock.tmLanguage.json @@ -578,7 +578,7 @@ } }, { - "match": "(domain|denyallow)(=)([^,]+)", + "match": "(domain|denyallow|from|to)(=)([^,]+)", "captures": { "1": { "name": "keyword.other.adblock" @@ -748,6 +748,33 @@ } } }, + { + "match": "(method)(=)([^,]+)", + "captures": { + "1": { + "name": "keyword.other.adblock" + }, + "2": { + "name": "keyword.operator.adblock" + }, + "3": { + "patterns": [ + { + "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" + } + ] + } + } + }, { "match": "(inline-script|inline-font|mp4|empty|badfilter|genericblock|generichide|network|popup|popunder|important|cookie|csp|replace|stealth|removeparam|queryprune)", "name": "keyword.other.adblock"