-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)ecosystem: upstreamUpstream package has issueUpstream package has issuefeat: syntaxIssue in our syntax highlighting (scope)Issue in our syntax highlighting (scope)pkg: language-toolsRelated to language-tooling (scope)Related to language-tooling (scope)
Description
Describe the Bug
If the last part of Astro frontmatter has a TS type and doesn't end with a semicolon, the following content is incorrectly highlighted
Steps to Reproduce
npm init astro- In an Astro file, use this content:
--- type anything = {} const a = 123 --- <div> <a></a> </div>
- Comment out the
a = 123line to see unexpected highlighting. The initial state is what it should look like in all cases
Code_zFtAFlNEgm.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)ecosystem: upstreamUpstream package has issueUpstream package has issuefeat: syntaxIssue in our syntax highlighting (scope)Issue in our syntax highlighting (scope)pkg: language-toolsRelated to language-tooling (scope)Related to language-tooling (scope)