Title: DashDash token causing remaining parameter tokens to be flagged as CommandName · Issue #10347 · PowerShell/PowerShell · GitHub
Open Graph Title: DashDash token causing remaining parameter tokens to be flagged as CommandName · Issue #10347 · PowerShell/PowerShell
X Title: DashDash token causing remaining parameter tokens to be flagged as CommandName · Issue #10347 · PowerShell/PowerShell
Description: Apparently there is some special meaning to the DashDash token when it is used in command mode, but I couldn't seem to uncover it. While trying to understand the tokenizer and parser I ran in to these two issues: A DashDash token causes ...
Open Graph Description: Apparently there is some special meaning to the DashDash token when it is used in command mode, but I couldn't seem to uncover it. While trying to understand the tokenizer and parser I ran in to th...
X Description: Apparently there is some special meaning to the DashDash token when it is used in command mode, but I couldn't seem to uncover it. While trying to understand the tokenizer and parser I ran in t...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DashDash token causing remaining parameter tokens to be flagged as CommandName","articleBody":"Apparently there is some special meaning to the DashDash token when it is used in command mode, but I couldn't seem to uncover it. While trying to understand the tokenizer and parser I ran in to these two issues:\r\n\r\n1. A DashDash token causes further Parameter tokens to be flagged as CommandName, which can be confusing with PSReadLine if PSReadLine if changed to prioritize the highlighting of CommandName over Parameter (https://github.com/PowerShell/PSReadLine/pull/989).\r\n2. A DashDash token can be accepted as a command, when used with the invoke operators, but it does not get flagged with CommandName, and so causes PSReadLine to highlight it as a operator. Even when it is accepted as a command, the behavior in point 1 still occurs.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n& -- -NowACommandNameFlaggedToken\r\n```\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-08-13T04:02:32Z","url":"https://github.com/PowerShell/PowerShell/issues/10347"}
| 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:c79da52c-f8e2-814f-781c-90e9c69881ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0B8:2658F9:7F7B0C:B3A454:6AFE16B4 |
| html-safe-nonce | f282af9ca4a0ca9e8035b5441a818e9430bf70ade44d73693a3b7ad10fb68b3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEI4OjI2NThGOTo3RjdCMEM6QjNBNDU0OjZBRkUxNkI0IiwidmlzaXRvcl9pZCI6IjMxNDU5ODEzNTMzMjU4OTMzMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 02d12027e2b9462baaa88b308300b130db13fa788dc35a6d5edb833056c5d137 |
| hovercard-subject-tag | issue:479948379 |
| 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/10347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b53a872711976f0a553c1c24084c263e17e1ad5f026f6e11691a821a93453e27/PowerShell/PowerShell/issues/10347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b53a872711976f0a553c1c24084c263e17e1ad5f026f6e11691a821a93453e27/PowerShell/PowerShell/issues/10347 |
| og:image:alt | Apparently there is some special meaning to the DashDash token when it is used in command mode, but I couldn't seem to uncover it. While trying to understand the tokenizer and parser I ran in to th... |
| 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 | 3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af |
| 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 | 05539640a34afe6142a519483d78ddd766a1304a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width