Skip to content

Commit

Permalink
Fix regex highlighting issue. Closes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Apr 6, 2019
1 parent 44d646f commit 7b49b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions syntaxes/adblock.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,7 @@
"patterns": [
{
"name": "entity.name.function.adblock",
"match": "[^{}]+"
},
{
"name": "invalid.illegal.adblock",
"match": ".*"
"match": ".+"
}
]
},
Expand Down
2 changes: 2 additions & 0 deletions test_rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ j.gs#@##bottom
berlin.de##.teaser[-ext-has='>.inner>h3>a.trakkking,>.inner>h3:not(:has(>))']
xn--fgelsng-exae.se##banner
xn--80aneaaefcxzcih6g1e.xn--p1ai##banner
4pda.ru##body > * > * > div > * > :not(div) > :not(div) > :not(div) > div:has(> h2:contains(/[APprmoАрРо]{8}/))
! TLD
google.*###center_col > #main > .dfrd > .mnr-c > .c._oc._zs
google.*###center_col > #res > #topstuff + #search > div > #ires > #rso > #flun

!
! Elemhide rules (invalid)
!
! TODO: Make it invalid
##invalid_selector { invalid part of it }
example.org,example.com|test.com##valid_selector
example.org,123,test.com##valid_selector
Expand Down

0 comments on commit 7b49b78

Please sign in to comment.