diff --git a/syntaxes/adblock.tmLanguage.json b/syntaxes/adblock.tmLanguage.json index 5aa2b1b..2bd2c28 100644 --- a/syntaxes/adblock.tmLanguage.json +++ b/syntaxes/adblock.tmLanguage.json @@ -919,6 +919,32 @@ }, "cssStyle": { "patterns": [ + { + "match": "(@media[\\s]+[^\\{]*)(\\{)([\\s]*[^\\{]*)(\\{)([\\s]*[^\\}]*)(\\})[\\s]*(\\})", + "captures": { + "1": { + "name": "entity.name.function.adblock" + }, + "2": { + "name": "punctuation.section.adblock" + }, + "3": { + "name": "entity.name.function.adblock" + }, + "4": { + "name": "punctuation.section.adblock" + }, + "5": { + "name": "string.quoted.adblock" + }, + "6": { + "name": "punctuation.section.adblock" + }, + "7": { + "name": "punctuation.section.adblock" + } + } + }, { "match": "([^{}]+)\\s*((\\{)(.+?)(\\}))", "captures": { diff --git a/test_rules.txt b/test_rules.txt index f6a33aa..41c6e6a 100644 --- a/test_rules.txt +++ b/test_rules.txt @@ -336,4 +336,8 @@ $removeheader=location,domain=zannn.top|innal.top /telsu\.fi\/(?![^>].*\.(jpg|png|svg|ico)$).+/$image,domain=www.telsu.fi ! https://github.com/ameshkov/VscodeAdblockSyntax/issues/10 -한글코딩.org##div \ No newline at end of file +한글코딩.org##div + +! https://github.com/ameshkov/VscodeAdblockSyntax/issues/56 +rootblog.pl#$#@media all and (min-width: 1200px) { a[href*="news.google.com/publications/"] { visibility: hidden !important; } } +rootblog.pl#$#@media (min-width: 1200px) { a[href*="news.google.com/publications/"] { visibility: hidden !important; } }