Title: `switch` statement `default` clause condition keyword should be flagged as keyword token · Issue #10470 · PowerShell/PowerShell · GitHub
Open Graph Title: `switch` statement `default` clause condition keyword should be flagged as keyword token · Issue #10470 · PowerShell/PowerShell
X Title: `switch` statement `default` clause condition keyword should be flagged as keyword token · Issue #10470 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement In PowerShell ISE and with PSReadLine, the default clause condition keyword of the switch statement receives only 'bareword' treatment, making it hard to spot relative to other bareword conditions. ...
Open Graph Description: Summary of the new feature/enhancement In PowerShell ISE and with PSReadLine, the default clause condition keyword of the switch statement receives only 'bareword' treatment, making it hard to spot...
X Description: Summary of the new feature/enhancement In PowerShell ISE and with PSReadLine, the default clause condition keyword of the switch statement receives only 'bareword' treatment, making it hard...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10470
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`switch` statement `default` clause condition keyword should be flagged as keyword token","articleBody":"# Summary of the new feature/enhancement\r\n\r\nIn PowerShell ISE and with PSReadLine, the `default` clause condition keyword of the `switch` statement receives only 'bareword' treatment, making it hard to spot relative to other bareword conditions.\r\n\r\n(PowerShell 7 with custom PSReadLine theme)\r\n\r\n\r\n(Example shown here with https://github.com/PowerShell/EditorSyntax/pull/156 (which marks the bareword conditions as unquoted strings) and a custom theme in VS Code, with the keyword highlighted)\r\n\r\n\r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nI would propose a change to `Parser.GetCommandArgument()` that would mark the token as a keyword when it meets the criteria for being the `default` clause condition keyword.\r\n\r\nI can include a commit to PR https://github.com/PowerShell/PowerShell/pull/10295 that demonstrates this change.\r\n\r\n\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-08-31T02:57:29Z","url":"https://github.com/PowerShell/PowerShell/issues/10470"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce8a64d8-db66-8e6a-88c1-4b3a421978f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E6C:36F8B8:15BB3C:1EAE98:6AFE0FB4 |
| html-safe-nonce | eed06cd6d1e6b00111cce95157a71eed83835160457e22982e7779481b67d934 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTZDOjM2RjhCODoxNUJCM0M6MUVBRTk4OjZBRkUwRkI0IiwidmlzaXRvcl9pZCI6IjIxMjMzMjcyNjc2NjM2NDY2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ee87c43c78aaf1d2c8d184426e1ca684ff3a329958f64eabcea8574a6e8fa46 |
| hovercard-subject-tag | issue:487722735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/10470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7fe1b1e6fd9c3d7967408890854e8b2455d525242de8cf7e6122e9e48d8035f0/PowerShell/PowerShell/issues/10470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fe1b1e6fd9c3d7967408890854e8b2455d525242de8cf7e6122e9e48d8035f0/PowerShell/PowerShell/issues/10470 |
| og:image:alt | Summary of the new feature/enhancement In PowerShell ISE and with PSReadLine, the default clause condition keyword of the switch statement receives only 'bareword' treatment, making it hard to spot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1fd4053be37b4bd545b4f38f1cecad058c343776acf2cbc6806316f26270e55e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 635a57b3d0df6bc21c0f39fc7078888fb90e4066 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width