microsoft / microsoft/TypeScript-TmLanguage
JS & TS tokenizers don't support regexes with the "v" flag
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 471
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.87.0-insider
- OS Version: Darwin arm64 23.4.0
Steps to Reproduce:
- Write
const regex = /test/v;in any.(j|t)sx?file - See that syntax highlighting breaks
https://github.com/microsoft/vscode/assets/20396367/1143c919-2ee1-4573-9214-ef94e3e89eaf
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the syntax-highlighting failure with const regex = /test/v; in a .js, .ts, .jsx, or .tsx file, then inspect the repository's TypeScript TextMate grammar files. Done means regexes using the v flag retain correct syntax highlighting in the affected file types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100