Skip to content

Add support for regex in tokenTypes#304885

Open
zackbach wants to merge 1 commit intomicrosoft:mainfrom
zackbach:regex-tokenTypes
Open

Add support for regex in tokenTypes#304885
zackbach wants to merge 1 commit intomicrosoft:mainfrom
zackbach:regex-tokenTypes

Conversation

@zackbach
Copy link

@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
Author

@microsoft-github-policy-service agree

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

2 participants