René's URL Explorer Experiment


Title: Fixes for automatic variables by msftrncs · Pull Request #166 · PowerShell/EditorSyntax · GitHub

Open Graph Title: Fixes for automatic variables by msftrncs · Pull Request #166 · PowerShell/EditorSyntax

X Title: Fixes for automatic variables by msftrncs · Pull Request #166 · PowerShell/EditorSyntax

Description: Fixes #133. This corrects the regex used for matching $$, $^ and $? automatic variables. This occurs because the current regex can be simplified to \$[$^?]\b, but the \b (word boundary) fails if one of the two characters tested at the boundary is not a word character (one must be a word, one must not be a word, and the set [$^?] contains no word characters). As such, only very limited cases would have successfully matched. A boundary test is not required for these particular patterns. $_ is not affected because _ is a word character, and so it has been left in the part of the regex that still applies the boundary test (and is actually required). This also fixes the mismatch of scopes for these same variables and the larger set specified in the same regex(s), between #variable and #variableNoProperty, by adopting support.variable.automatic.powershell in both places. Tests have been corrected for the scope change, and then updated to include tests specific to the two conditions being resolved.

Open Graph Description: Fixes #133. This corrects the regex used for matching $$, $^ and $? automatic variables. This occurs because the current regex can be simplified to \$[$^?]\b, but the \b (word boundary) fails if o...

X Description: Fixes #133. This corrects the regex used for matching $$, $^ and $? automatic variables. This occurs because the current regex can be simplified to \$[$^?]\b, but the \b (word boundary) fails if o...

Opengraph URL: https://github.com/PowerShell/EditorSyntax/pull/166

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cde81b88-47cf-aa0a-bdc2-675c4f27912d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA5DC:76970:CC4B91:11D7628:6AFE2F15
html-safe-nonceebfc8ea8058040e5ec88f8584df1cf163de80e0290a6b0278405db45f641f024
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNURDOjc2OTcwOkNDNEI5MToxMUQ3NjI4OjZBRkUyRjE1IiwidmlzaXRvcl9pZCI6IjMwNDE5MTEwMDE1MDM5MDM1MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac41a30dcf24a4825a1588a126bb4964235c203a708e15941a5f394b93db6931e1
hovercard-subject-tagpull_request:274085766
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/EditorSyntax/pull/166/files
twitter:imagehttps://avatars.githubusercontent.com/u/26179051?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/26179051?s=400&v=4
og:image:altFixes #133. This corrects the regex used for matching $$, $^ and $? automatic variables. This occurs because the current regex can be simplified to \$[$^?]\b, but the \b (word boundary) fails if o...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseccb88d9c92abe69245b429398c8a57ae87070c7c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/EditorSyntax/pull/166/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FEditorSyntax%2Fpull%2F166%2Ffiles
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%2Fpull%2F166%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FEditorSyntax
Reloadhttps://github.com/PowerShell/EditorSyntax/pull/166/files
Reloadhttps://github.com/PowerShell/EditorSyntax/pull/166/files
Reloadhttps://github.com/PowerShell/EditorSyntax/pull/166/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FEditorSyntax%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FEditorSyntax%2Fissues%2Fnew%2Fchoose
TylerLeonhardthttps://github.com/TylerLeonhardt
PowerShell:masterhttps://github.com/PowerShell/EditorSyntax/tree/master
msftrncs:fixAutomaticVarshttps://github.com/msftrncs/EditorSyntax/tree/fixAutomaticVars
Conversation 1 https://github.com/PowerShell/EditorSyntax/pull/166
Commits 3 https://github.com/PowerShell/EditorSyntax/pull/166/commits
Checks 0 https://github.com/PowerShell/EditorSyntax/pull/166/checks
Files changed https://github.com/PowerShell/EditorSyntax/pull/166/files
Please reload this pagehttps://github.com/PowerShell/EditorSyntax/pull/166/files
Fixes for automatic variables https://github.com/PowerShell/EditorSyntax/pull/166/files#top
Show all changes 3 commits https://github.com/PowerShell/EditorSyntax/pull/166/files
b33d90e fixes #133 msftrncs Apr 27, 2019 https://github.com/PowerShell/EditorSyntax/pull/166/commits/b33d90e32f79f24a426726dd3ba347c3988c2468
968a47d fix tests for automatic variable scope change msftrncs Apr 27, 2019 https://github.com/PowerShell/EditorSyntax/pull/166/commits/968a47d301bfa0409cb28c7b64591c8eb508a430
421a44c add tests for $$, $^, $? msftrncs Apr 27, 2019 https://github.com/PowerShell/EditorSyntax/pull/166/commits/421a44c65662ac2e9e720dfd818bece1d7db1420
Clear filters https://github.com/PowerShell/EditorSyntax/pull/166/files
Please reload this pagehttps://github.com/PowerShell/EditorSyntax/pull/166/files
Please reload this pagehttps://github.com/PowerShell/EditorSyntax/pull/166/files
PowerShellSyntax.tmLanguage https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
syntax_test_Class.ps1 https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1e7870970386a6e7d9ec7b2431a0da6a92d68a64f8d41f1f6060664afaa0ad36
syntax_test_Function.ps1 https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
syntax_test_TheBigTestFile.ps1 https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
PowerShellSyntax.tmLanguagehttps://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
View file https://github.com/msftrncs/EditorSyntax/blob/421a44c65662ac2e9e720dfd818bece1d7db1420/PowerShellSyntax.tmLanguage
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/EditorSyntax/pull/166/{{ revealButtonHref }}
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-05ed4aff919a527212868bbb00edcf01e584ee29a67156317e748a4db0cb1f91
spec/testfiles/syntax_test_Class.ps1https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1e7870970386a6e7d9ec7b2431a0da6a92d68a64f8d41f1f6060664afaa0ad36
View file https://github.com/msftrncs/EditorSyntax/blob/421a44c65662ac2e9e720dfd818bece1d7db1420/spec/testfiles/syntax_test_Class.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/EditorSyntax/pull/166/{{ revealButtonHref }}
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1e7870970386a6e7d9ec7b2431a0da6a92d68a64f8d41f1f6060664afaa0ad36
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1e7870970386a6e7d9ec7b2431a0da6a92d68a64f8d41f1f6060664afaa0ad36
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1e7870970386a6e7d9ec7b2431a0da6a92d68a64f8d41f1f6060664afaa0ad36
spec/testfiles/syntax_test_Function.ps1https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
View file https://github.com/msftrncs/EditorSyntax/blob/421a44c65662ac2e9e720dfd818bece1d7db1420/spec/testfiles/syntax_test_Function.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/EditorSyntax/pull/166/{{ revealButtonHref }}
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-14dff145ae9d62b3449c7e543c21812f01027fe475b30ea94d5102ae0782c438
spec/testfiles/syntax_test_TheBigTestFile.ps1https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
View file https://github.com/msftrncs/EditorSyntax/blob/421a44c65662ac2e9e720dfd818bece1d7db1420/spec/testfiles/syntax_test_TheBigTestFile.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/EditorSyntax/pull/166/{{ revealButtonHref }}
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
https://github.com/PowerShell/EditorSyntax/pull/166/files#diff-1a688d0985294392f6b0febe76fd357a413a82edeb84ba49829c37873a018fe6
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.