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

Export type breaks syntax highlighting #1110

Open
ebeloded opened this issue Jul 20, 2021 · 2 comments
Open

Export type breaks syntax highlighting #1110

ebeloded opened this issue Jul 20, 2021 · 2 comments
Labels
bug Something isn't working upstream

Comments

@ebeloded
Copy link

Describe the bug
When module context has only export type, syntax highlighting breaks

<script lang="ts" context="module">
export type T = 't'
</script>

Adding a semicolon at the end fixes the issue

Screenshots
Broken:
image

Normal (with semicolon):
image

@ebeloded ebeloded added the bug Something isn't working label Jul 20, 2021
@jasonlyu123
Copy link
Member

This probably has to do with typescript's syntax highlight. I can see a similar issue in the ts file.
圖片
圖片

@jasonlyu123
Copy link
Member

Seems to be related to microsoft/TypeScript-TmLanguage#873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants