René's URL Explorer Experiment


Title: keywords scoped in places where not actually keywords, IF inside simple interpolation `()` for instance · Issue #152 · PowerShell/EditorSyntax · GitHub

Open Graph Title: keywords scoped in places where not actually keywords, IF inside simple interpolation `()` for instance · Issue #152 · PowerShell/EditorSyntax

X Title: keywords scoped in places where not actually keywords, IF inside simple interpolation `()` for instance · Issue #152 · PowerShell/EditorSyntax

Description: Environment Editor and Version: VS Code: 1.31 Insiders / 1.30.1 Your primary theme: Monokai Dimmed (modified) Issue Description In the following image and code, the if is being scoped as 'keyword.control', as if it was valid to utilize a...

Open Graph Description: Environment Editor and Version: VS Code: 1.31 Insiders / 1.30.1 Your primary theme: Monokai Dimmed (modified) Issue Description In the following image and code, the if is being scoped as 'keyword.c...

X Description: Environment Editor and Version: VS Code: 1.31 Insiders / 1.30.1 Your primary theme: Monokai Dimmed (modified) Issue Description In the following image and code, the if is being scoped as 'keywo...

Opengraph URL: https://github.com/PowerShell/EditorSyntax/issues/152

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"keywords scoped in places where not actually keywords, IF inside simple interpolation `()` for instance","articleBody":"### Environment\r\n\r\n- Editor and Version: VS Code: 1.31 Insiders / 1.30.1\r\n- Your primary theme: Monokai Dimmed (modified)\r\n\r\n### Issue Description\r\n\r\nIn the following image and code, the `if` is being scoped as 'keyword.control', as if it was valid to utilize an IF statement at this point.  However it is not valid, and the code instead causes an error stating that `The term 'if' is not recognized as the name …`  No syntax error is reported by EditorServices either.  PSReadLine however does indicate that the `if` would be treated as a command instead of a keyword.\r\n\r\n#### Screenshots\r\nVS Code:\r\n![image](https://user-images.githubusercontent.com/26179051/50534065-655ada00-0afc-11e9-959d-b829df720e10.png)\r\nPSReadLine\r\n![image](https://user-images.githubusercontent.com/26179051/50534284-11ea8b00-0b00-11e9-9e0b-14b0ed905711.png)\r\n(keywords would be green)\r\n\r\n### Expected Behavior\r\n\r\nI would like to expect that this case would not receive 'keyword.control' scoping, so that I am not led to believe the given command might actually be correct.  A quick attempt to correct this indicates that this will require some reorganization, because too many items are in the root patterns and not in the repository.  \r\n\r\nThis also shows that there is more to argument mode vs. expression mode than I had originally thought.  Control statements cannot always be used everywhere a command can be used.  This also affects other limited scope keywords, such as `in`, which is scoped as 'keyword.control' in more places than it should be.\r\n\r\n### Code Samples\r\n\r\n```PowerShell\r\n    '\u003c?xml version=\"1.0\"' + (if ($encoding) {' encoding=\"' + $encoding + '\"'}) + '?>'\r\n```\r\nThe correct code:\r\n```PowerShell\r\n    '\u003c?xml version=\"1.0\"' + $(if ($encoding) {' encoding=\"' + $encoding + '\"'}) + '?>'\r\n```\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2018-12-29T07:18:47Z","url":"https://github.com/PowerShell/EditorSyntax/issues/152"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:07e16350-a0e8-fad6-68e1-7f280af8d51f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD8C:2FE627:32413:44B9E:6AFE0F2B
html-safe-noncedbd3912b95402f915dc7ce5393a953eb3bcaf1196f87f242dc8a431a5537617f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDhDOjJGRTYyNzozMjQxMzo0NEI5RTo2QUZFMEYyQiIsInZpc2l0b3JfaWQiOiI4MTQxMTY4MTYyNzA5MDQ5MTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9d02433f5025448c214c470a1570178433afafb1a050d96dae4f2cce8e942fb4
hovercard-subject-tagissue:394769590
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/EditorSyntax/152/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9bdee4b8dc75861f65cd7e4fe7a899d4a94f360284f9e21d47335170e2e0b0ed/PowerShell/EditorSyntax/issues/152
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9bdee4b8dc75861f65cd7e4fe7a899d4a94f360284f9e21d47335170e2e0b0ed/PowerShell/EditorSyntax/issues/152
og:image:altEnvironment Editor and Version: VS Code: 1.31 Insiders / 1.30.1 Your primary theme: Monokai Dimmed (modified) Issue Description In the following image and code, the if is being scoped as 'keyword.c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemsftrncs
hostnamegithub.com
expected-hostnamegithub.com
None1fd4053be37b4bd545b4f38f1cecad058c343776acf2cbc6806316f26270e55e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/EditorSyntax git https://github.com/PowerShell/EditorSyntax.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id59601299
octolytics-dimension-repository_nwoPowerShell/EditorSyntax
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id59601299
octolytics-dimension-repository_network_root_nwoPowerShell/EditorSyntax
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release635a57b3d0df6bc21c0f39fc7078888fb90e4066
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/EditorSyntax/issues/152#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FEditorSyntax%2Fissues%2F152
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FEditorSyntax%2Fissues%2F152
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FEditorSyntax
Reloadhttps://github.com/PowerShell/EditorSyntax/issues/152
Reloadhttps://github.com/PowerShell/EditorSyntax/issues/152
Reloadhttps://github.com/PowerShell/EditorSyntax/issues/152
PowerShellhttps://github.com/PowerShell
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Codehttps://github.com/PowerShell/EditorSyntax
Issues69 (69)https://github.com/PowerShell/EditorSyntax/issues
Pull requests5 (5)https://github.com/PowerShell/EditorSyntax/pulls
Actionshttps://github.com/PowerShell/EditorSyntax/actions
Projectshttps://github.com/PowerShell/EditorSyntax/projects
Wikihttps://github.com/PowerShell/EditorSyntax/wiki
Security and qualityhttps://github.com/PowerShell/EditorSyntax/security
Insightshttps://github.com/PowerShell/EditorSyntax/insights
https://github.com/PowerShell/EditorSyntax
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/EditorSyntax/issues/152
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/EditorSyntax/issues/152
keywords scoped in places where not actually keywords, IF inside simple interpolation () for instancehttps://github.com/PowerShell/EditorSyntax/issues/152#top
https://github.com/msftrncs
Carl Morris (msftrncs)https://github.com/msftrncs
on Dec 29, 2018https://github.com/PowerShell/EditorSyntax/issues/152#issue-394769590
https://user-images.githubusercontent.com/26179051/50534065-655ada00-0afc-11e9-959d-b829df720e10.png
https://user-images.githubusercontent.com/26179051/50534284-11ea8b00-0b00-11e9-9e0b-14b0ed905711.png
https://github.com/msftrncs
Carl Morris (msftrncs)https://github.com/msftrncs
on Apr 28, 2019https://github.com/PowerShell/EditorSyntax/issues/152#issuecomment-487338366
#156https://github.com/PowerShell/EditorSyntax/pull/156
https://user-images.githubusercontent.com/26179051/56858094-7b599980-693a-11e9-9120-2372d15c97ab.png
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/EditorSyntax/issues/152
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/EditorSyntax/issues/152
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.