Skip to content

Add missing comment-based help keywords in PowerShell.sublime-syntax #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PowerShell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ contexts:
(?xi:
^\s*(\.)
(
Component | Description | Example | ForwardHelpTargetName
| Functionality | Inputs | Notes | Outputs | RemoteHelpRunSpace
Component | Description | Example | ExternalHelp | ForwardHelpCategory | ForwardHelpTargetName
| Functionality | Inputs | Link | Notes | Outputs | Parameter | RemoteHelpRunSpace
| Role | Synopsis
)
)
Expand Down
47 changes: 47 additions & 0 deletions Tests/syntax_test_PowerShell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
# ^^ constant.numeric.float
1.d
# ^^^ constant.numeric.float
1.lGB

Check failure on line 478 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[constant.numeric.float - unclear whether float or int] does not match scope [source.powershell]

Check failure on line 478 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[keyword.other.unit] does not match scope [source.powershell]

Check failure on line 478 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[keyword.other.unit] does not match scope [source.powershell]
# ^^^ constant.numeric.float - unclear whether float or int
# ^^ keyword.other.unit
1.dGB
Expand Down Expand Up @@ -522,7 +522,7 @@
# ^^ constant.numeric.integer
# ^^^ constant.numeric.float
# ^ keyword.operator
-10.002L

Check failure on line 525 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[constant.numeric.float - unclear whether float or int] does not match scope [source.powershell]
# ^ keyword.operator.unary
# ^^^^^^^ constant.numeric.float - unclear whether float or int
$x..5.40D
Expand Down Expand Up @@ -989,7 +989,7 @@
# ^ keyword.operator.assignment
# ^ constant.numeric.integer
# ^ punctuation.separator
SupportsPaging,

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]

Check failure on line 992 in Tests/syntax_test_PowerShell.ps1

View workflow job for this annotation

GitHub Actions / Syntax Tests (4102)

[variable.parameter.attribute] does not match scope [source.powershell meta.block.powershell meta.group.powershell meta.attribute.powershell]
#^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute
# ^^^^^^^^^^^^^^ variable.parameter.attribute
# ^ punctuation.separator
Expand Down Expand Up @@ -1534,3 +1534,50 @@
# ^^^^^^^^^^^^^^^^^ variable.language - punctuation
# ^ variable.language punctuation
# ^^^^^^^^^^^^^^^^ variable.language - punctuation
<#
.SYNOPSIS
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^ keyword.other.documentation
.DESCRIPTION
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^ keyword.other.documentation
.PARAMETER
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^ keyword.other.documentation
.EXAMPLE
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^ keyword.other.documentation
.INPUTS
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^ keyword.other.documentation
.OUTPUTS
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^ keyword.other.documentation
.NOTES
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^ keyword.other.documentation
.LINK
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^ keyword.other.documentation
.COMPONENT
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^ keyword.other.documentation
.ROLE
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^ keyword.other.documentation
.FUNCTIONALITY
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^^^ keyword.other.documentation
.FORWARDHELPTARGETNAME
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^^^^^^^^^^^ keyword.other.documentation
.FORWARDHELPCATEGORY
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^^^^^^^^^ keyword.other.documentation
.REMOTEHELPRUNSPACE
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^^^^^^^^ keyword.other.documentation
.EXTERNALHELP
#<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
#^^^^^^^^^^^^ keyword.other.documentation
#>
Loading