mirror of
https://github.com/scopatz/nanorc
synced 2024-11-25 01:45:39 +01:00
35 lines
33 KiB
Plaintext
35 lines
33 KiB
Plaintext
|
## Nano syntax highlighting file for PowerShell
|
||
|
## Written by Rashil Gandhi https://github.com/rashil2000
|
||
|
|
||
|
syntax "PowerShell" "\.[pP][sS][1]$" "\.[pP][sS][mM][1]$"
|
||
|
|
||
|
## Commands
|
||
|
icolor cyan "\<(Add-AppPackage|Add-AppPackageVolume|Add-AppProvisionedPackage|Add-ProvisionedAppPackage|Add-ProvisionedAppxPackage|Add-ProvisioningPackage|Add-TrustedProvisioningCertificate|Apply-WindowsUnattend|Disable-PhysicalDiskIndication|Disable-StorageDiagnosticLog|Dismount-AppPackageVolume|Enable-PhysicalDiskIndication|Enable-StorageDiagnosticLog|Flush-Volume|Get-AppPackage|Get-AppPackageDefaultVolume|Get-AppPackageLastError|Get-AppPackageLog|Get-AppPackageManifest|Get-AppPackageVolume|Get-AppProvisionedPackage|Get-DiskSNV|Get-PhysicalDiskSNV|Get-ProvisionedAppPackage|Get-ProvisionedAppxPackage|Get-StorageEnclosureSNV|Initialize-Volume|Mount-AppPackageVolume|Move-AppPackage|Move-SmbClient|Optimize-AppProvisionedPackages|Optimize-ProvisionedAppPackages|Optimize-ProvisionedAppxPackages|Remove-AppPackage|Remove-AppPackageVolume|Remove-AppProvisionedPackage|Remove-EtwTraceSession|Remove-ProvisionedAppPackage|Remove-ProvisionedAppxPackage|Remove-ProvisioningPackage|Remove-TrustedProvisioningCertificate|Set-AppPackageDefaultVolume|Set-AppPackageProvisionedDataFile|Set-AutologgerConfig|Set-EtwTraceSession|Set-ProvisionedAppPackageDataFile|Set-ProvisionedAppXDataFile|Write-FileSystemCache|A:|Add-BitLockerKeyProtector|Add-DnsClientNrptRule|Add-DtcClusterTMMapping|Add-EtwTraceProvider|Add-InitiatorIdToMaskingSet|Add-MpPreference|Add-MpPreference|Add-NetEventNetworkAdapter|Add-NetEventPacketCaptureProvider|Add-NetEventProvider|Add-NetEventVFPProvider|Add-NetEventVmNetworkAdapter|Add-NetEventVmSwitch|Add-NetEventVmSwitchProvider|Add-NetEventWFPCaptureProvider|Add-NetIPHttpsCertBinding|Add-NetLbfoTeamMember|Add-NetLbfoTeamNic|Add-NetNatExternalAddress|Add-NetNatStaticMapping|Add-NetSwitchTeamMember|Add-OdbcDsn|Add-PartitionAccessPath|Add-PhysicalDisk|Add-PoshGitToProfile|Add-Printer|Add-PrinterDriver|Add-PrinterPort|Add-SshKey|Add-StorageFaultDomain|Add-TargetPortToMaskingSet|Add-VirtualDiskToMaskingSet|Add-VpnConnection|Add-VpnConnectionRoute|Add-VpnConnectionTriggerApplication|Add-VpnConnectionTriggerDnsConfiguration|Add-VpnConnectionTriggerTrustedNetwork|AfterAll|AfterEach|Assert-MockCalled|Assert-VerifiableMocks|B:|Backup-BitLockerKeyProtector|BackupToAAD-BitLockerKeyProtector|BeforeAll|BeforeEach|Block-FileShareAccess|Block-SmbShareAccess|C:|cd..|cd\|Clear-BitLockerAutoUnlock|Clear-Disk|Clear-DnsClientCache|Clear-FileStorageTier|Clear-Host|Clear-PcsvDeviceLog|Clear-StorageBusDisk|Clear-StorageDiagnosticInfo|Close-SmbOpenFile|Close-SmbSession|Compress-Archive|Configuration|Connect-IscsiTarget|Connect-VirtualDisk|Context|ConvertFrom-SddlString|Copy-NetFirewallRule|Copy-NetIPsecMainModeCryptoSet|Copy-NetIPsecMainModeRule|Copy-NetIPsecPhase1AuthSet|Copy-NetIPsecPhase2AuthSet|Copy-NetIPsecQuickModeCryptoSet|Copy-NetIPsecRule|D:|Debug-FileShare|Debug-MMAppPrelaunch|Debug-StorageSubSystem|Debug-Volume|Describe|Disable-BitLocker|Disable-BitLockerAutoUnlock|Disable-DAManualEntryPointSelection|Disable-DeliveryOptimizationVerboseLogs|Disable-DscDebug|Disable-MMAgent|Disable-NetAdapter|Disable-NetAdapterBinding|Disable-NetAdapterChecksumOffload|Disable-NetAdapterEncapsulatedPacketTaskOffload|Disable-NetAdapterIPsecOffload|Disable-NetAdapterLso|Disable-NetAdapterPacketDirect|Disable-NetAdapterPowerManagement|Disable-NetAdapterQos|Disable-NetAdapterRdma|Disable-NetAdapterRsc|Disable-NetAdapterRss|Disable-NetAdapterSriov|Disable-NetAdapterUso|Disable-NetAdapterVmq|Disable-NetDnsTransitionConfiguration|Disable-NetFirewallRule|Disable-NetIPHttpsProfile|Disable-NetIPsecMainModeRule|Disable-NetIPsecRule|Disable-NetNatTransitionConfiguration|Disable-NetworkSwitchEthernetPort|Disable-NetworkSwitchFeature|Disable-NetworkSwitchVlan|Disable-OdbcPerfCounter|Disable-PhysicalDiskIdentification|Disable-PnpDevice|Disable-PSTrace|Disable-PSWSManCombinedTrace|Disable-ScheduledTask|Disable-SmbDelegation|Disable-StorageBusCache|Disable-StorageBusDisk|Disable-StorageEnclosureIdentification|Disable-StorageEnclosurePower|Disable-StorageHighAvailability|Disable-StorageMaintenanceMode|Disable-WdacBidTrace|Disable-WSManTrace|Disconnect-IscsiTarget|Disconnect-
|
||
|
|
||
|
## Functions
|
||
|
icolor brightyellow "\<function\>"
|
||
|
|
||
|
## Comparison operators
|
||
|
icolor brightyellow "-\<(eq|ne|gt|lt|ge|le|like|notlike|match|notmatch|contains|notcontains|in|notin|replace|is|isnot)\>"
|
||
|
|
||
|
## Variables
|
||
|
icolor brightred "\$[a-zA-Z0-9_]+"
|
||
|
|
||
|
## Statements
|
||
|
icolor brightcyan "\<(if|do|else|elseif|for|foreach|switch|until|while)\>"
|
||
|
|
||
|
## Comments
|
||
|
color brightblue "#.*$"
|
||
|
color brightblue start="<#" end="#>"
|
||
|
|
||
|
## Quoted text
|
||
|
color brightwhite "\"[^\"]*\""
|
||
|
color brightwhite "'[^']*'"
|
||
|
|
||
|
## Text between %'s and @'s
|
||
|
icolor brightmagenta "\%[^\%]*\%"
|
||
|
icolor brightmagenta start="@\"" end="\"@"
|
||
|
|
||
|
## Trailing whitespace
|
||
|
color ,green "[[:space:]]+$"
|