Title: tokenizer treats commands as expandable strings · Issue #10275 · PowerShell/PowerShell · GitHub
Open Graph Title: tokenizer treats commands as expandable strings · Issue #10275 · PowerShell/PowerShell
X Title: tokenizer treats commands as expandable strings · Issue #10275 · PowerShell/PowerShell
Description: The tokenizer seems to treat commands (and some other tokens) as expandable strings. Why is this? It makes misleading colorization in PSReadLine. function crazy$function {echo test} # `$function` appears to be a variable, but is not craz...
Open Graph Description: The tokenizer seems to treat commands (and some other tokens) as expandable strings. Why is this? It makes misleading colorization in PSReadLine. function crazy$function {echo test} # `$function` a...
X Description: The tokenizer seems to treat commands (and some other tokens) as expandable strings. Why is this? It makes misleading colorization in PSReadLine. function crazy$function {echo test} # `$function` a...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tokenizer treats commands as expandable strings","articleBody":"The tokenizer seems to treat commands (and some other tokens) as expandable strings. Why is this? It makes misleading colorization in PSReadLine.\r\n\r\n```PowerShell\r\nfunction crazy$function {echo test} # `$function` appears to be a variable, but is not\r\n\r\ncrazy$function # again, `$function` appears to be a variable that will expand, but it is not\r\n```\r\n\r\n\r\n\r\nAnother one that occurs is if you start a command with a dash, the tokenizer marks it as a parameter, but it should mark it as a command.\r\n\r\n\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-08-01T04:47:19Z","url":"https://github.com/PowerShell/PowerShell/issues/10275"}
| 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:0c608a06-adcb-eb59-7c10-12a4711bc6cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAFC:2CF4F4:1D2DE9:279E36:6AFE17D9 |
| html-safe-nonce | 9a00bc9e128da9d1dfd4e1f9862e59163730fdf22be38f8633f610ba44783603 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUZDOjJDRjRGNDoxRDJERTk6Mjc5RTM2OjZBRkUxN0Q5IiwidmlzaXRvcl9pZCI6Ijc5NDA3NzExNzY3MDEwMzAwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8bc99077919871b5ce0aa514d8f1a53017460edbc7104e4abe625001e60bbf38 |
| hovercard-subject-tag | issue:475469560 |
| 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/10275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a0bf941fe93cff1881c81b791a0e6590f0dcd34f217c534c7d565cf32d6b50f/PowerShell/PowerShell/issues/10275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a0bf941fe93cff1881c81b791a0e6590f0dcd34f217c534c7d565cf32d6b50f/PowerShell/PowerShell/issues/10275 |
| og:image:alt | The tokenizer seems to treat commands (and some other tokens) as expandable strings. Why is this? It makes misleading colorization in PSReadLine. function crazy$function {echo test} # `$function` a... |
| 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