Unit tests for LESS/SCSS

Also fixes for #8894 and #8895.
The new RegExp (`/^\s*@/`) will also match any LESS variable name -- is that OK?