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 #662

Open
tcNickolas opened this issue Apr 26, 2022 · 0 comments
Open

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

tcNickolas opened this issue Apr 26, 2022 · 0 comments
Labels
Area-Client Issue relates to JavaScript client (Notebook, Lab, AzNB, etc.) Kind-Enhancement New feature or request

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"
@cgranade cgranade added Kind-Enhancement New feature or request Area-Client Issue relates to JavaScript client (Notebook, Lab, AzNB, etc.) labels Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-Client Issue relates to JavaScript client (Notebook, Lab, AzNB, etc.) Kind-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants