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

Syntax highlighting could use improvement #1950

Open
minestarks opened this issue Oct 4, 2024 · 1 comment
Open

Syntax highlighting could use improvement #1950

minestarks opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@minestarks
Copy link
Member

The TextMate grammar used for Q# syntax highlighting in VS Code is missing some patterns that would help the syntax highlighting look nicer.

Compare:

image

The Q# looks pretty boring in comparison to other languages with good support.

I think we can start by defining patterns for function calls and numeric literals, which are seen in these screenshots. There may be others that are interesting as well.

@minestarks minestarks added enhancement New feature or request good first issue Good for newcomers needs triage labels Oct 4, 2024
@Morcifer
Copy link

Morcifer commented Jan 2, 2025

Hi @minestarks, @sezna, can I pick this one up?

I have function definitions, function calls, numbers and variables all working.

However, function calls and variables also end up applied to attributes and to imports. Is it better that I make designated rules for them as part of this issue, or would it be better to make a followup?

Image

(this comment was edited several times as I kept working on the issue, sorry about that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants