opened
dkzlv
username_0
<!-- Before you submit a bug, please make sure that:
- you have searched and found no existing open issue with the problem at hand
- you don't have   "files.associations": {"*.svelte": "html"  }   inside your VSCode settings (if you can't remember ever doing that, you don't have that)
- you are using Svelte for Vscode (NOT the old "Svelte" by James Birtles) and have disabled all other Svelte-related extensions to reproduce the bug
- if it's a preprocessor related bug like "can't use typescript", did you setup `svelte-preprocess` and/or `svelte.config.js`? See the docs for more info.
-->

**Describe the bug**
If you set SCSS as the default style language and not set it inside the component itself on `<style>` tag, it would mess up the whole highlighting of everything below.

**To Reproduce**
Set the defaults in `rollup.config.js`:

```js
import sveltePreprocess from 'svelte-preprocess';

const preprocess = sveltePreprocess({
  defaults: {
    style: 'scss',
  },
  scss: true,
});
```

Set the same in `svelte.config.js`:

```js
const sveltePreprocess = require('svelte-preprocess');

module.exports = {
  preprocess: sveltePreprocess({
    defaults: {
      style: 'scss',
    },
    scss: true,
  }),
};
```

Use some basic component like this:

```svelte
<script>
  let blabla = 'wer';
</script>

<style>
  @mixin a($var) {
    font-style: $var;
  }

  .selector {
    @include a('qwd');
  }
</style>

<!-- Messes up everything -->
<div class="selector">Yep {blabla}</div>
```

**Expected behavior**
Should work as if `<style lang='scss'>` is saved in the file.

**Screenshots**
![Messed up highlighting](https://user-images.githubusercontent.com/2846746/104028626-ff6cb700-51d9-11eb-9073-58dc263aaf1f.png)

**System (please complete the following information):**
 - OS: OS X
 - IDE: VS Code
 - Plugin/Package: Svelte for VS Code (103.0.0)
SCSS highlighting breaks if defined as default and not in the component
issue
created
dummdidumm
username_1
I don't think there's a way to solve this I'm afraid. [The docs mention this and give an explanation why](https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/in-general.md#using-language-defaults). If someone knows a way, let us know.
comment
created
dummdidumm
username_1
Related VS Code issue: https://github.com/microsoft/vscode/issues/68647
comment
created
dkzlv
username_0
Offtop: this idea is so dope. `<i18n>` tag would be so cool in the context of https://github.com/sveltejs/sapper/issues/576.
comment