Skip to content

feat: add rust syntax highlighting support#809

Open
abiriadev wants to merge 1 commit intomicrosoft:mainfrom
abiriadev:main
Open

feat: add rust syntax highlighting support#809
abiriadev wants to merge 1 commit intomicrosoft:mainfrom
abiriadev:main

Conversation

@abiriadev
Copy link
Copy Markdown

@abiriadev abiriadev commented Apr 22, 2026

This adds an LSH syntax highlighting support for Rust. I basically followed Rust reference's lexical structures part for reference.

Example screenshot image

One caveat is that some keywords like for might be highlighted inappropriately, as LSH isn't much context aware. For instance, a for keyword is highlighted as keyword.control, even though it is supposed to be keyword.other.

image

@abiriadev abiriadev changed the title main feat: add rust syntax highlighting support Apr 22, 2026
@abiriadev
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

1 participant