Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks when using typescript and linebreaks #1980

Closed
andremacola opened this issue Apr 10, 2023 · 1 comment
Closed

Syntax highlighting breaks when using typescript and linebreaks #1980

andremacola opened this issue Apr 10, 2023 · 1 comment
Labels

Comments

@andremacola
Copy link

andremacola commented Apr 10, 2023

Describe the bug

When you have only one line break right after defining a typing the Syntax highlighting breaks.

Reproduction

Even in the Github Preview the error is showing

Without error

<script lang="ts">
  export let label: string

</script>

<div><p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p></div>

With error

<script lang="ts">
  export let label: string
</script>

<div><p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p></div>

Expected behaviour

Correct Syntax highlighting

System Info

  • IDE: VSCode, Github Preview

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

color-svelte.mp4
@andremacola andremacola added the bug Something isn't working label Apr 10, 2023
@jasonlyu123
Copy link
Member

Duplicate of #1970

@jasonlyu123 jasonlyu123 marked this as a duplicate of #1970 Apr 10, 2023
@jasonlyu123 jasonlyu123 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2023
@jasonlyu123 jasonlyu123 added upstream and removed bug Something isn't working labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants