Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Highlight "size" as a keyword in array literal context #1419

Open
tcNickolas opened this issue Apr 26, 2022 · 1 comment
Open

Highlight "size" as a keyword in array literal context #1419

tcNickolas opened this issue Apr 26, 2022 · 1 comment
Assignees
Labels
enhancement New request or suggestion for an improvement

Comments

@tcNickolas
Copy link
Member

Is your feature request related to a problem? Please describe.
Q# Jupyter Notebooks don't highlight "size" as a keyword.

Describe the solution you'd like
Highlight "size" as a keyword in the context of array literals: something like "a comma, optional whitespace, size, optional whitespace, equality sign" should highlight "size" as a keyword, but other contexts shouldn't.

let size = 123;
let xs = [size, size = 2]; // first size is a variable, second size is a "keyword"
@tcNickolas tcNickolas added enhancement New request or suggestion for an improvement needs triage An initial review by a maintainer is needed labels Apr 26, 2022
@bettinaheim bettinaheim removed the needs triage An initial review by a maintainer is needed label Apr 28, 2022
@filipw
Copy link
Contributor

filipw commented Jul 1, 2022

This is handled in our community project for developing the TextMate grammar.

Still work in progress but it already offers a lot of improvements over the basic grammar.

Bildschirmfoto 2022-07-01 um 16 38 23

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New request or suggestion for an improvement
Projects
None yet
Development

No branches or pull requests

4 participants