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

Upstream TS grammar bug: No semicolon after a type leads to embedded TS running amok #5

Open
wooorm opened this issue Jun 20, 2023 · 0 comments

Comments

@wooorm
Copy link
Owner

wooorm commented Jun 20, 2023

Example:

# Dark blue?

```js
type X = 1
```

# Dark blue?

```ts
type X = 1
```

# Dark blue?

The bug is tracked at microsoft/TypeScript-TmLanguage#873.
It affects this grammar when used on GH only when using ```ts.
It affects this grammar when used in VS code everywhere.

The actual solution is upstream, but tracking it here as users might run into it.
In the mean time, add a semicolon :'(

# Dark blue?

```ts
type X = 1;
```

# Dark blue?
@wooorm wooorm changed the title Upstream TS grammar bug: No semicolon after a type leads to embedded TS running amock Upstream TS grammar bug: No semicolon after a type leads to embedded TS running amok Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant