pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Support semantic syntax highlighting

Open BenMawnMahlauNBTC opened this issue 8 months ago • 2 comments

Describe the Bug

Are there plans to support syntax highlighting/texmate scopes? Having these visual clues is very helpful for developers.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

BenMawnMahlauNBTC avatar May 16 '25 13:05 BenMawnMahlauNBTC

There should be basic syntax highlighting right now (python keywords are colored, strings are colored, etc), but we are still working on semantic tokens (different types of bindings have different colors).

If it's not working at all (all text is the same color), let us know since that is an issue.

kinto0 avatar May 17 '25 05:05 kinto0

I would like to say thanks to all Pyrefly developers, but also I would like to add my humble thumbs up to this feature request. IMHO, none of Pyrefly’s benefits compensate for the lack of readability and clearness that different colors give us. Here is just a short side-by-side comparison - everything is too white.

Pylance: Image Pyrefly: Image

am1ter avatar May 29 '25 03:05 am1ter

@BenMawnMahlauNBTC @am1ter if you are using VSCode, you should have semantic highlighting now. @SamChou19815 added support in Pyrefly's latest release. If you get a chance to try it, we'd love to know what you think.

lolpack avatar Jun 18 '25 15:06 lolpack

This issue has someone assigned, but has not had recent activity for more than 2 weeks.

If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.

Thank you for your contributions!

github-actions[bot] avatar Jul 07 '25 00:07 github-actions[bot]