-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3998 from b4n/powershell-enum-labels
powershell: Parse enum labels
- Loading branch information
Showing
6 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
EnumName1 input.ps1 /^enum EnumName1 {$/;" g | ||
Label11 input.ps1 /^ Label11$/;" e enum:EnumName1 | ||
Label12 input.ps1 /^ Label12 = 10$/;" e enum:EnumName1 | ||
EnumName2 input.ps1 /^enum EnumName2 {$/;" g | ||
Label21 input.ps1 /^ Label21$/;" e enum:EnumName2 | ||
Label22 input.ps1 /^ Label22 = 20$/;" e enum:EnumName2 | ||
EnumName3 input.ps1 /^Enum EnumName3 {$/;" g | ||
Label31 input.ps1 /^ Label31$/;" e enum:EnumName3 | ||
Label32 input.ps1 /^ Label32 = 30$/;" e enum:EnumName3 | ||
EnumName4 input.ps1 /^[Flags()] enum EnumName4 {$/;" g | ||
Label41 input.ps1 /^ Label41$/;" e enum:EnumName4 | ||
Label42 input.ps1 /^ Label42 = 40$/;" e enum:EnumName4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _ctags-lang-powershell(7): | ||
|
||
============================================================== | ||
ctags-lang-powershell | ||
============================================================== | ||
|
||
Random notes about tagging PowerShell source code with Universal Ctags | ||
|
||
:Version: 6.1.0 | ||
:Manual group: Universal Ctags | ||
:Manual section: 7 | ||
|
||
SYNOPSIS | ||
-------- | ||
| **ctags** ... --languages=+PowerShell ... | ||
| **ctags** ... --language-force=PowerShell ... | ||
| **ctags** ... --map-powershell=+.ps1 ... | ||
| **ctags** ... --map-powershell=+.psm1 ... | ||
DESCRIPTION | ||
----------- | ||
This man page gathers random notes about tagging PowerShell source code. | ||
|
||
VERSIONS | ||
-------- | ||
|
||
Change since "0.0" | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
* New kind ``enumlabel`` | ||
|
||
SEE ALSO | ||
-------- | ||
:ref:`ctags(1) <ctags(1)>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _ctags-lang-powershell(7): | ||
|
||
============================================================== | ||
ctags-lang-powershell | ||
============================================================== | ||
----------------------------------------------------------------------- | ||
Random notes about tagging PowerShell source code with Universal Ctags | ||
----------------------------------------------------------------------- | ||
:Version: @VERSION@ | ||
:Manual group: Universal Ctags | ||
:Manual section: 7 | ||
|
||
SYNOPSIS | ||
-------- | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+PowerShell ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=PowerShell ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --map-powershell=+.ps1 ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --map-powershell=+.psm1 ... | ||
|
||
DESCRIPTION | ||
----------- | ||
This man page gathers random notes about tagging PowerShell source code. | ||
|
||
VERSIONS | ||
-------- | ||
|
||
Change since "0.0" | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
* New kind ``enumlabel`` | ||
|
||
SEE ALSO | ||
-------- | ||
ctags(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters