Title: Highlight parameter names after function invocation · Issue #76 · PowerShell/EditorSyntax · GitHub
Open Graph Title: Highlight parameter names after function invocation · Issue #76 · PowerShell/EditorSyntax
X Title: Highlight parameter names after function invocation · Issue #76 · PowerShell/EditorSyntax
Description: Given Get-ChildItem -Path . -Recurse I cannot find a way to highlight "Path" and "Recurse". Currently I've only managed to highlight the -. The same goes for say "regex" in switch -Regex () {}. It's gross but surly something like \\s\\-(...
Open Graph Description: Given Get-ChildItem -Path . -Recurse I cannot find a way to highlight "Path" and "Recurse". Currently I've only managed to highlight the -. The same goes for say "regex" in switch -Regex () {}. It'...
X Description: Given Get-ChildItem -Path . -Recurse I cannot find a way to highlight "Path" and "Recurse". Currently I've only managed to highlight the -. The same goes for say "regex...
Opengraph URL: https://github.com/PowerShell/EditorSyntax/issues/76
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Highlight parameter names after function invocation","articleBody":"Given `Get-ChildItem -Path . -Recurse` I cannot find a way to highlight \"Path\" and \"Recurse\". Currently I've only managed to highlight the `-`. The same goes for say \"regex\" in `switch -Regex () {}`.\r\n\r\nIt's gross but surly something like `\\\\s\\\\-(?!(?i:[ic]?(?:eq|ne|gt|lt|ge|le|not|isnot|is|f|as|like|notmatch|match|notcontains|contains|in|and|or|xor|join|split|band|bor|bnot|bxor|replace))\\\\s)\\\\w+` would cover it? Provided it didn't step on `constant.numeric` and override negative integer highlighting.\r\n\r\nPlaying around on my own computer and adding this to powershell.tmLanguage.json:\r\n\r\n```json\r\n{\r\n \"match\": \"\\\\s\\\\-(?!(?i:[ic]?(?:eq|ne|gt|lt|ge|le|not|isnot|is|f|as|like|notmatch|match|notcontains|contains|in|and|or|xor|join|split|band|bor|bnot|bxor|replace))\\\\s)\\\\w+\",\r\n \"name\": \"variable.parameter.powershell\"\r\n},\r\n```\r\n\r\nI get the desired result although there may be edge cases I am not considering...\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/omniomi","@type":"Person","name":"omniomi"},"datePublished":"2018-05-01T21:48:48Z","url":"https://github.com/PowerShell/EditorSyntax/issues/76"}
| 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:26d6d229-e1da-c019-216b-0b6d4c0f21f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3CA:3C305D:277846:376502:6AFE1B00 |
| html-safe-nonce | 18fbea1cc6d7f9f4d237b9564c473faf41f3a9446284828a23dec73af4636af0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0NBOjNDMzA1RDoyNzc4NDY6Mzc2NTAyOjZBRkUxQjAwIiwidmlzaXRvcl9pZCI6IjE3MDQwMDExOTEzOTQ3NDE3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7dd1228f9882980a912e7bc3d238618fd5bc06b044d62b2a5bc7bc8bb84f0974 |
| hovercard-subject-tag | issue:319340268 |
| 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/EditorSyntax/76/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efe412dce7a245316a493b0183976595e862176b5ca458cbbc5be28fc0ecfae7/PowerShell/EditorSyntax/issues/76 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efe412dce7a245316a493b0183976595e862176b5ca458cbbc5be28fc0ecfae7/PowerShell/EditorSyntax/issues/76 |
| og:image:alt | Given Get-ChildItem -Path . -Recurse I cannot find a way to highlight "Path" and "Recurse". Currently I've only managed to highlight the -. The same goes for say "regex" in switch -Regex () {}. It'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | omniomi |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/EditorSyntax git https://github.com/PowerShell/EditorSyntax.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 59601299 |
| octolytics-dimension-repository_nwo | PowerShell/EditorSyntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59601299 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/EditorSyntax |
| 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 | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width