You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TextMate grammar used for Q# syntax highlighting in VS Code is missing some patterns that would help the syntax highlighting look nicer.
Compare:
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.
The text was updated successfully, but these errors were encountered:
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?
(this comment was edited several times as I kept working on the issue, sorry about that).
Supports syntax highlighting for:
- function definitions
- function calls
- numbers
- variables
See issue #1950.
The change for function calls also applies to operation definitions and
to attributes (see bigger example below).
The change for variables also applies to attributes and to imports.
I might be nice to make attributes and imports get their own designated
rules. I can do them as part of this PR, but I think it might be best to
do as a followup issue - because I believe this PR is actually already
an improvement for them.
Simple example for the change (from the original issue description):
![image](https://github.com/user-attachments/assets/cab2630b-0e28-4d48-a98e-7e5bc83e5c7c)
And a bigger example:
![image](https://github.com/user-attachments/assets/7d0c059a-8481-4159-ba64-d8539f1540c0)
The TextMate grammar used for Q# syntax highlighting in VS Code is missing some patterns that would help the syntax highlighting look nicer.
Compare:
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.
The text was updated successfully, but these errors were encountered: