Skip to content

Add support for regex in tokenTypes#304885

Merged
hediet merged 2 commits intomicrosoft:mainfrom
zackbach:regex-tokenTypes
Apr 9, 2026
Merged

Add support for regex in tokenTypes#304885
hediet merged 2 commits intomicrosoft:mainfrom
zackbach:regex-tokenTypes

Conversation

@zackbach
Copy link
Copy Markdown
Contributor

@zackbach zackbach commented Mar 25, 2026

Fixes #304883. Tweaks the types and parsing of tokenTypes into StandardTokenType.

To test, specify regex for some TextMate scope in the tokenTypes specification for an extension, following the instructions here. Then, run the extension in developer mode and observe that the token type is identified as RegEx using Developer: Inspect Editor Tokens and Scopes when in the corresponding TextMate scope.

@zackbach
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@hediet hediet merged commit cec7c1c into microsoft:main Apr 9, 2026
22 of 23 checks passed
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regex should be supported in tokenTypes

5 participants