adobe/brackets — pull request #908 by redmunds (2012-05-17 18:06:14+00:00)
Title: fix issue #861 (and more)

extractAllSelectors() was a bit cryptic and not scalable, so to fix issue #861, I refactored it. Actually, it's a total rewrite, so ignore the diff. This should be easier for future maintenance.

Changes include:
* better handling of all @rules
* updated a unit test to catch issue #861
* verified performance is no worse (actually slightly faster)
* converted trim() function calls to RegExp: !string.match(/\S/)