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

Improve TM language for enums, unions and escaped identifiers #3069

Merged

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Mar 27, 2024

resolves #3070
The tm language wasn't correctly defining the syntax for escaped identifiers

`North West`

Enums and unions syntax was also not very accurate and didn't tokenize everything correctly

Example of issue before

image

After

image

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 27, 2024

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3069/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3069/

@timotheeguerin timotheeguerin merged commit ce9c567 into microsoft:main Mar 27, 2024
14 checks passed
@timotheeguerin timotheeguerin deleted the tmlanguage-escpaed-identifiers branch March 27, 2024 17:12
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

Successfully merging this pull request may close these issues.

[Bug]: Tm language doesn't highlight escaped identifiers corrrectly
3 participants