Chromium Code Reviews| Index: chrome/browser/web_dev_style/css_checker.py |
| diff --git a/chrome/browser/web_dev_style/css_checker.py b/chrome/browser/web_dev_style/css_checker.py |
| index d626e6098d5cfd7529c70f036ab2a184b959fcbd..86701ff7827dac2e8e6384f4dab4d2c0fa540632 100644 |
| --- a/chrome/browser/web_dev_style/css_checker.py |
| +++ b/chrome/browser/web_dev_style/css_checker.py |
| @@ -33,9 +33,9 @@ class CSSChecker(object): |
| def _remove_ats(s): |
| at_reg = re.compile(r""" |
| - @\w+[^'"]*?{ # @at-keyword selector junk { |
| - (.*{.*?})+ # inner { curly } blocks, rules, and selector junk |
| - .*?} # stuff up to the first end curly }""", |
|
Tyler Breisacher (Chromium)
2014/12/03 03:37:50
Actually I like the way the comments are all lined
Dan Beam
2014/12/03 05:35:45
Done.
|
| + @(?!\d+x\b)\w+[^'"]*?{ # @at-keyword selector junk {, not @2x |
| + (.*{.*?})+ # inner { curly } blocks, rules, and selector junk |
| + .*?} # stuff up to the first end curly }""", |
| re.DOTALL | re.VERBOSE) |
| return at_reg.sub('\\1', s) |