René's URL Explorer Experiment


Title: Decide on scope names for all language constructs · Issue #8 · PowerShell/EditorSyntax · GitHub

Open Graph Title: Decide on scope names for all language constructs · Issue #8 · PowerShell/EditorSyntax

X Title: Decide on scope names for all language constructs · Issue #8 · PowerShell/EditorSyntax

Description: I'd like to have a discussion where we decide on the "correct" scope names for all PowerShell language constructs. This will mean much less work when doing updates to the tmLanguage file in the future, as the scopes (as well as the color...

Open Graph Description: I'd like to have a discussion where we decide on the "correct" scope names for all PowerShell language constructs. This will mean much less work when doing updates to the tmLanguage file in the fut...

X Description: I'd like to have a discussion where we decide on the "correct" scope names for all PowerShell language constructs. This will mean much less work when doing updates to the tmLanguage f...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decide on scope names for all language constructs","articleBody":"I'd like to have a discussion where we decide on the \"correct\" scope names for all PowerShell language constructs. This will mean much less work when doing updates to the tmLanguage file in the future, as the scopes (as well as the color(!) of each) are checked by a Travis CI build job on the vscode repo.\n##### General\n- All scope names should end in `.powershell`\n\nAs we decide, we can fill out this table:\n\n| Language construct | Scope Name | Comments/Examples |\n| --- | --- | --- |\n| Line comment | comment.line.number-sign | `# comments` |\n| Block comment | comment.block | `\u003c# comments #>` |\n| Help directives | comment.documentation.embedded | Meta scope |\n| Help directives - keywords | keyword.operator.documentation | `.SYNOPSIS` |\n| Help directives - keyword value | constant.string.documentation | 'ParameterName' in `.PARAMETER ParameterName` |\n| #Requires statement | keywords.operator.documentation | 'Requires' in `#Requires -Version 3.0` |\n| #Requires statement - parameter | constant.string.documentation | '-Version 3.0' in `#Requires -Version 3.0` |\n| String - double quoted | string.quoted.double | `\"string\"` |\n| String - single quoted | string.quoted.single | `'string'` |\n| String - escape characters | constant.character.escape | '`t' in `\"one`ttwo\"` |\n| String - heredoc double quoted | string.quoted.double.heredoc |  |\n| String - heredoc single quoted | string.quoted.single.heredoc |  |\n| ScriptBlock | meta.scriptblock | `{ ... }` |\n| SubExpression | meta.subexpression | `$( ... )` |\n| Hashtable | meta.hashtable | `@{ ... }` |\n| Array | meta.array | `@(1,2,3)` & `(1,2,3)` |\n| Property/Member | entity.other.attribute-name | 'property' in `(Invoke-Something).property` & 'property' in `$var.property` |\n| Numeric Constant - real | constant.numeric.real | `+.5` |\n| Numeric Constant - integer | constant.numeric.integer | `5` |\n| Numeric Constant - hexadecimal | constant.numeric.hexadecimal | `0x20` |\n| Type | entity.name.type | 'string' in `[string]` |\n| Type - static method | meta.method | '::MinValue' in `[int]::MinValue` |\n| Parameter decorator | entity.name.type | 'Parameter' in `[Parameter(Position = 1)]` |\n| Parameter decorator - property | entity.other.attribute-name | 'Position' in `[Parameter(Position = 1)]` |\n| Function | meta.function | Meta scope |\n| Function - keyword | storage.type | 'function' in `function script:Invoke-Something { ... }` |\n| Function - scope | storage.modifier.scope | 'script' in `function script:Invoke-Something { ... }` |\n| Function - name | entity.name.function | 'Invoke-Something' in `function script:Invoke-Something { ... }` |\n| Command | meta.command | Meta scope |\n| Command - keyword | support.function | 'Invoke-Something' in `Invoke-Something -p1 'v1'` |\n| Command - parameter | variable.parameter | '-p1' in `Invoke-Something -p1 'v1'` |\n| Reserved words | keyword.other | `configuration` |\n| Control words | keyword.control | `break` |\n| Enum - keyword | storage.type | 'enum' in `enum myEnum { ... }` |\n| Enum - name | entity.name.function | 'myEnum' in `enum myEnum { ... }` |\n| Class | meta.class | Meta scope |\n| Class - keyword | storage.type | 'class' in `class myClass : inheritedClass { ... }` |\n| Class - name | entity.name.function | 'myClass' in `class myClass : inheritedClass { ... }` |\n| Class - inheritance | entity.other.inherited-class | 'inheritedClass' in `class myClass : inheritedClass { ... }` |\n| Class - reserved words | keyword.other | `hidden` & `static` |\n| Class - control words | keyword.control.class | 'base' in `: base( ... )` |\n| Operator - redirection | keyword.operator.redirection | `2>&1` |\n| Operator - comparison | keyword.operator.comparison | `-gt` |\n| Operator - bitwise | keyword.operator.bitwise | `-band` |\n| Operator - logical | keyword.operator.logical | `-and` |\n| Operator - format | keyword.operator.format | `-f` |\n| Operator - assignment | keyword.operator.assignment | `+=` |\n| Operator - logical not | keyword.operator.logical-not | `-not` & `!` |\n| Operator - multiplicative | keyword.operator.multiplicative | `/` & `*` |\n| Operator - unary plus | keyword.operator.unary-plus | `+` |\n| Operator - unary minus | keyword.operator.unary-minus | `-` |\n| Operator - additive | keyword.operator.additive | `+` & `-` |\n| Operator - range | keyword.operator.range | `..` |\n| Operator - command invocation | keyword.operator.other | `&` |\n| Operator - stop parsing | keyword.operator | `--%` |\n| Switch - keyword | keyword.control | 'switch' in `switch -regex ($var) { ... }` |\n| Switch - parameter | variable.parameter | '-regex' in `switch -regex ($var) { ... }` |\n| Switch - reserved word | keyword.other | `default` |\n| Illegal | invalid.illegal | Space after backtick |\n| Variable - $ | keyword.other | '$' in `$variable` |\n| Variable - ${..} | keyword.other | '${' and '}' in `${variable}` |\n| Variable - automatic | constant.language | `$_` & `$error` |\n| Variable - scope | storage.modifier.scope | 'script' in `$script:variable` |\n| Variable - name | variable.other.readwrite | 'variable' in `$script:variable` |\n\nI have started by filling out the scope names as I have used them in my refactored language file.\n##### About scopes and highlighting\n\nIf, in the theme, there are colorization rules only for the scope _constant.operator_, both _constant.operator_ and _constant.operator.range_ will be colorized the same.\n\nIf there isn't any colorization rules for a scope, it will be colorized with the \"root\" color of the current scope. Meaning if the word 'test' only belong to the source scope (or have a scope name that is not defined in the current theme), it will be colorized with the default background color. If the word 'test' is found inside another scope, for instance a string, it will be colorized with the color for the string scope.\n\nColorization rules may differ between editors. For instance the background parameter. This is supported on Sublime Text, but not in VSCode.\n\nA matched set of characters can be (and more often than not are) assigned multiple scopes. So for example the word **variable** in `function MyFunction {\"this is $(\"a $variable\")\"}` have the following scopes: source, string.quoted.double, meta.subexpression, string.quoted.double and lastly variable.other.readwrite. Only the last one is used for colorization.\n##### About the default themes in VSCode\n\nThere are five themes that are defined as _default_ themes in Visual Studio Code:\n- dark_plus \"**Dark+**\"\n- dark_vs \"**Dark Visual Studio**\"\n- hc_black \"**Dark Visual Studio**\"\n- light_plus \"**Light+**\"\n- light_vs \"**Light Visual Studio**\"\n\nThe themes supports nesting, and:\n- Light+ includes light_vs (Light Visual Studio)\n- Dark+ includes dark_vs (Dark Visual Studio)\n\nThe following scopes are defined in the plus-themes:\n- meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, entity.name.class, entity.name.type, storage.type.cs, storage.type.java\n- entity.name.function, entity.name.method\n- keyword.control\n- meta.parameter.type.variable, variable.parameter, variable, variable.name\n\nThe following scopes are defined in the \"old\" default themes:\n- emphasis\n- strong\n- header\n- comment\n- constant.language\n- constant.numeric\n- constant.regexp\n- constant.rgb-value\n- entity.name.tag\n- entity.name.selector\n- entity.other.attribute-name\n- entity.other.attribute-name.css\n- invalid\n- markup.underline\n- markup.bold\n- markup.heading\n- markup.italic\n- markup.inserted\n- markup.deleted\n- markup.changed\n- meta.selector\n- meta.tag\n- meta.preprocessor\n- meta.preprocessor.string\n- meta.preprocessor.numeric\n- meta.structure.dictionary.key.python\n- storage\n- storage.type\n- storage.modifier\n- string\n- string.xml, string.jade, string.yaml, string.html\n- string.regexp\n- support.property-value\n- support.type.property-name.css, support.type.property-name.less, support.type.property-name.sass\n- support.type.property-name\n- keyword\n- keyword.control\n- keyword.operator\n- keyword.operator.new\n- keyword.other.unit\n- keyword.control.less\n- metatag.php\n- support.function.git-rebase\n- constant.sha.git-rebase\n- storage.modifier.import.java, storage.modifier.package.java\n\nScope names on the same line, means they are defined in the same colorization rule.\n","author":{"url":"https://github.com/gravejester","@type":"Person","name":"gravejester"},"datePublished":"2016-06-10T15:22:03Z","url":"https://github.com/PowerShell/EditorSyntax/issues/8"}

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:309c0866-53b3-bc27-93b9-4869d9950e4f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD674:28FF9E:84F6BB:BB6D5A:6AFE1406
html-safe-noncec53d025b2bea896f94ca665da337f8e47c5d9ed83ce4cffa3e35b41713340c75
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjc0OjI4RkY5RTo4NEY2QkI6QkI2RDVBOjZBRkUxNDA2IiwidmlzaXRvcl9pZCI6IjE2NzczMDg3MzA4ODM4Mzg5ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac94e1c173460bd3e10ee86f5e664327916bc329e3580c79d00fec843ff5ea3b9b
hovercard-subject-tagissue:159659489
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/8/issue_layout
twitter:imagehttps://opengraph.githubassets.com/423a21093ecfd9b4a11d92f2a65f5ba30ceb077bfbb4f4883c786c46b7d3d0b7/PowerShell/EditorSyntax/issues/8
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/423a21093ecfd9b4a11d92f2a65f5ba30ceb077bfbb4f4883c786c46b7d3d0b7/PowerShell/EditorSyntax/issues/8
og:image:altI'd like to have a discussion where we decide on the "correct" scope names for all PowerShell language constructs. This will mean much less work when doing updates to the tmLanguage file in the fut...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegravejester
hostnamegithub.com
expected-hostnamegithub.com
None3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af
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
release05539640a34afe6142a519483d78ddd766a1304a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/EditorSyntax/issues/8#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FEditorSyntax%2Fissues%2F8
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%2F8
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/8
Reloadhttps://github.com/PowerShell/EditorSyntax/issues/8
Reloadhttps://github.com/PowerShell/EditorSyntax/issues/8
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/8
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/EditorSyntax/issues/8
Decide on scope names for all language constructshttps://github.com/PowerShell/EditorSyntax/issues/8#top
discussionhttps://github.com/PowerShell/EditorSyntax/issues?q=state%3Aopen%20label%3A%22discussion%22
https://github.com/gravejester
Øyvind Kallstad (gravejester)https://github.com/gravejester
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issue-159659489
David Wilson (daviwil)https://github.com/daviwil
discussionhttps://github.com/PowerShell/EditorSyntax/issues?q=state%3Aopen%20label%3A%22discussion%22
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#event-688799186
https://github.com/daviwil
David Wilson (daviwil)https://github.com/daviwil
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225231320
Martin Aeschlimann (@aeschli)https://github.com/aeschli
https://github.com/gravejester
Øyvind Kallstad (gravejester)https://github.com/gravejester
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225231673
https://github.com/vors
sergei (vors)https://github.com/vors
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225234580
https://github.com/gravejester
Øyvind Kallstad (gravejester)https://github.com/gravejester
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225234845
https://github.com/aeschli
Martin Aeschlimann (aeschli)https://github.com/aeschli
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225235940
https://manual.macromates.com/en/language_grammarshttps://manual.macromates.com/en/language_grammars
http://www.apeth.com/nonblog/stories/textmatebundle.htmlhttp://www.apeth.com/nonblog/stories/textmatebundle.html
https://github.com/gravejester
Øyvind Kallstad (gravejester)https://github.com/gravejester
on Jun 10, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-225236453
Martin Aeschlimann (@aeschli)https://github.com/aeschli
https://github.com/allisoneer
Allison Durham (allisoneer)https://github.com/allisoneer
on Aug 15, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-239926319
https://github.com/allisoneer
Allison Durham (allisoneer)https://github.com/allisoneer
on Aug 19, 2016https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-241081219
https://cloud.githubusercontent.com/assets/20910163/17594231/25cdad64-5fae-11e6-8e0e-51ec0e600a90.png
https://cloud.githubusercontent.com/assets/20910163/17594234/2813cd38-5fae-11e6-9dbc-41ecfc5946a0.PNG
https://cloud.githubusercontent.com/assets/20910163/17818229/3f1447f0-6608-11e6-9320-9ed0e16642a6.png
https://github.com/Satak
Sami Koskivaara (Satak)https://github.com/Satak
on Jan 29, 2017https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-275942822
https://github.com/omniomi
Nick James (omniomi)https://github.com/omniomi
on May 21, 2018https://github.com/PowerShell/EditorSyntax/issues/8#issuecomment-390781873
https://www.sublimetext.com/docs/3/scope_naming.htmlhttps://www.sublimetext.com/docs/3/scope_naming.html
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/EditorSyntax/issues/8
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/EditorSyntax/issues/8
discussionhttps://github.com/PowerShell/EditorSyntax/issues?q=state%3Aopen%20label%3A%22discussion%22
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.