rouge 3.5.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rouge.rb +1 -0
  3. data/lib/rouge/cli.rb +19 -11
  4. data/lib/rouge/demos/openedge +4 -0
  5. data/lib/rouge/demos/powershell +12 -48
  6. data/lib/rouge/demos/xojo +2 -1
  7. data/lib/rouge/demos/xpath +2 -0
  8. data/lib/rouge/demos/xquery +22 -0
  9. data/lib/rouge/formatters/html.rb +18 -2
  10. data/lib/rouge/formatters/html_line_table.rb +51 -0
  11. data/lib/rouge/guessers/modeline.rb +1 -1
  12. data/lib/rouge/lexers/apache.rb +1 -1
  13. data/lib/rouge/lexers/bpf.rb +12 -12
  14. data/lib/rouge/lexers/ceylon.rb +5 -5
  15. data/lib/rouge/lexers/docker.rb +2 -2
  16. data/lib/rouge/lexers/elixir.rb +5 -2
  17. data/lib/rouge/lexers/elm.rb +1 -1
  18. data/lib/rouge/lexers/fsharp.rb +4 -4
  19. data/lib/rouge/lexers/glsl.rb +1 -1
  20. data/lib/rouge/lexers/http.rb +1 -1
  21. data/lib/rouge/lexers/idlang.rb +1 -1
  22. data/lib/rouge/lexers/json.rb +1 -1
  23. data/lib/rouge/lexers/jsp.rb +3 -3
  24. data/lib/rouge/lexers/liquid.rb +23 -0
  25. data/lib/rouge/lexers/magik.rb +2 -1
  26. data/lib/rouge/lexers/make.rb +5 -4
  27. data/lib/rouge/lexers/mosel.rb +43 -43
  28. data/lib/rouge/lexers/nim.rb +2 -1
  29. data/lib/rouge/lexers/nix.rb +1 -1
  30. data/lib/rouge/lexers/openedge.rb +429 -0
  31. data/lib/rouge/lexers/perl.rb +12 -14
  32. data/lib/rouge/lexers/powershell.rb +181 -635
  33. data/lib/rouge/lexers/ruby.rb +2 -2
  34. data/lib/rouge/lexers/scala.rb +1 -1
  35. data/lib/rouge/lexers/shell.rb +1 -1
  36. data/lib/rouge/lexers/swift.rb +4 -4
  37. data/lib/rouge/lexers/tex.rb +1 -1
  38. data/lib/rouge/lexers/toml.rb +1 -1
  39. data/lib/rouge/lexers/vala.rb +1 -1
  40. data/lib/rouge/lexers/vhdl.rb +1 -1
  41. data/lib/rouge/lexers/wollok.rb +1 -1
  42. data/lib/rouge/lexers/xml.rb +1 -1
  43. data/lib/rouge/lexers/xojo.rb +4 -4
  44. data/lib/rouge/lexers/xpath.rb +332 -0
  45. data/lib/rouge/lexers/xquery.rb +145 -0
  46. data/lib/rouge/lexers/yaml.rb +5 -3
  47. data/lib/rouge/regex_lexer.rb +14 -13
  48. data/lib/rouge/tex_theme_renderer.rb +2 -2
  49. data/lib/rouge/themes/monokai_sublime.rb +2 -1
  50. data/lib/rouge/themes/pastie.rb +1 -1
  51. data/lib/rouge/util.rb +2 -2
  52. data/lib/rouge/version.rb +1 -1
  53. metadata +10 -3
@@ -77,19 +77,17 @@ module Rouge
77
77
 
78
78
  rule %r/(?:eq|lt|gt|le|ge|ne|not|and|or|cmp)\b/, Operator::Word
79
79
 
80
- # common delimiters
81
- rule %r(s/(\\\\|\\/|[^/])*/(\\\\|\\/|[^/])*/[msixpodualngc]*), re_tok
82
- rule %r(s!(\\\\|\\!|[^!])*!(\\\\|\\!|[^!])*![msixpodualngc]*), re_tok
83
- rule %r(s\\(\\\\|[^\\])*\\(\\\\|[^\\])*\\[msixpodualngc]*), re_tok
84
- rule %r(s@(\\\\|\\@|[^@])*@(\\\\|\\@|[^@])*@[msixpodualngc]*), re_tok
85
- rule %r(s%(\\\\|\\%|[^%])*%(\\\\|\\%|[^%])*%[msixpodualngc]*), re_tok
86
-
87
- # balanced delimiters
88
- rule %r(s{(\\\\|\\}|[^}])*}\s*), re_tok, :balanced_regex
89
- rule %r(s<(\\\\|\\>|[^>])*>\s*), re_tok, :balanced_regex
90
- rule %r(s\[(\\\\|\\\]|[^\]])*\]\s*), re_tok, :balanced_regex
91
- rule %r[s\((\\\\|\\\)|[^\)])*\)\s*], re_tok, :balanced_regex
80
+ # substitution/transliteration: balanced delimiters
81
+ rule %r((?:s|tr|y){(\\\\|\\}|[^}])*}\s*), re_tok, :balanced_regex
82
+ rule %r((?:s|tr|y)<(\\\\|\\>|[^>])*>\s*), re_tok, :balanced_regex
83
+ rule %r((?:s|tr|y)\[(\\\\|\\\]|[^\]])*\]\s*), re_tok, :balanced_regex
84
+ rule %r[(?:s|tr|y)\((\\\\|\\\)|[^\)])*\)\s*], re_tok, :balanced_regex
92
85
 
86
+ # substitution/transliteration: arbitrary non-whitespace delimiters
87
+ rule %r((?:s|tr|y)\s*([^\w\s])((\\\\|\\\1)|[^\1])*?\1((\\\\|\\\1)|[^\1])*?\1[msixpodualngcr]*)m, re_tok
88
+ rule %r((?:s|tr|y)\s+(\w)((\\\\|\\\1)|[^\1])*?\1((\\\\|\\\1)|[^\1])*?\1[msixpodualngcr]*)m, re_tok
89
+
90
+ # matches: common case, m-optional
93
91
  rule %r(m?/(\\\\|\\/|[^/\n])*/[msixpodualngc]*), re_tok
94
92
  rule %r(m(?=[/!\\{<\[\(@%\$])), re_tok, :balanced_regex
95
93
 
@@ -102,12 +100,12 @@ module Rouge
102
100
 
103
101
  rule %r/\s+/, Text
104
102
  rule %r/(?:#{builtins.join('|')})\b/, Name::Builtin
105
- rule %r/((__(DATA|DIE|WARN)__)|(STD(IN|OUT|ERR)))\b/,
103
+ rule %r/((__(DIE|WARN)__)|(DATA|STD(IN|OUT|ERR)))\b/,
106
104
  Name::Builtin::Pseudo
107
105
 
108
106
  rule %r/<<([\'"]?)([a-zA-Z_][a-zA-Z0-9_]*)\1;?\n.*?\n\2\n/m, Str
109
107
 
110
- rule %r/__END__\b/, Comment::Preproc, :end_part
108
+ rule %r/(__(END|DATA)__)\b/, Comment::Preproc, :end_part
111
109
  rule %r/\$\^[ADEFHILMOPSTWX]/, Name::Variable::Global
112
110
  rule %r/\$[\\"'\[\]&`+*.,;=%~?@$!<>(^\|\/-](?!\w)/, Name::Variable::Global
113
111
  rule %r/[-+\/*%=<>&^\|!\\~]=?/, Operator
@@ -3,9 +3,8 @@
3
3
 
4
4
  module Rouge
5
5
  module Lexers
6
- load_lexer 'shell.rb'
7
6
 
8
- class Powershell < Shell
7
+ class Powershell < RegexLexer
9
8
  title 'powershell'
10
9
  desc 'powershell'
11
10
  tag 'powershell'
@@ -13,666 +12,213 @@ module Rouge
13
12
  filenames '*.ps1', '*.psm1', '*.psd1', '*.psrc', '*.pssc'
14
13
  mimetypes 'text/x-powershell'
15
14
 
15
+ # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_cmdletbindingattribute?view=powershell-6
16
16
  ATTRIBUTES = %w(
17
- CmdletBinding ConfirmImpact DefaultParameterSetName HelpURI SupportsPaging
18
- SupportsShouldProcess PositionalBinding
17
+ ConfirmImpact DefaultParameterSetName HelpURI PositionalBinding
18
+ SupportsPaging SupportsShouldProcess
19
+ )
20
+
21
+ # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-6
22
+ AUTO_VARS = %w(
23
+ \$\$ \$\? \$\^ \$_
24
+ \$args \$ConsoleFileName \$Error \$Event \$EventArgs \$EventSubscriber
25
+ \$ExecutionContext \$false \$foreach \$HOME \$Host \$input \$IsCoreCLR
26
+ \$IsLinux \$IsMacOS \$IsWindows \$LastExitCode \$Matches \$MyInvocation
27
+ \$NestedPromptLevel \$null \$PID \$PROFILE \$PSBoundParameters \$PSCmdlet
28
+ \$PSCommandPath \$PSCulture \$PSDebugContext \$PSHOME \$PSItem
29
+ \$PSScriptRoot \$PSSenderInfo \$PSUICulture \$PSVersionTable \$PWD
30
+ \$REPORTERRORSHOWEXCEPTIONCLASS \$REPORTERRORSHOWINNEREXCEPTION
31
+ \$REPORTERRORSHOWSOURCE \$REPORTERRORSHOWSTACKTRACE
32
+ \$SENDER \$ShellId \$StackTrace \$switch \$this \$true
19
33
  ).join('|')
20
34
 
35
+ # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_reserved_words?view=powershell-6
21
36
  KEYWORDS = %w(
22
- Begin Exit Process Break Filter Return Catch Finally Sequence Class For
23
- Switch Continue ForEach Throw Data From Trap Define Function Try Do If
24
- Until DynamicParam In Using Else InlineScript Var ElseIf Parallel While
25
- End Param Workflow
37
+ assembly exit process base filter public begin finally return break for
38
+ sequence catch foreach static class from switch command function throw
39
+ configuration hidden trap continue if try data in type define
40
+ inlinescript until do interface using dynamicparam module var else
41
+ namespace while elseif parallel workflow end param enum private
26
42
  ).join('|')
27
43
 
44
+ # https://devblogs.microsoft.com/scripting/powertip-find-a-list-of-powershell-type-accelerators/
45
+ # ([PSObject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::Get).Keys -join ' '
28
46
  KEYWORDS_TYPE = %w(
29
- bool byte char decimal double float int long object sbyte
30
- short string uint ulong ushort
47
+ Alias AllowEmptyCollection AllowEmptyString AllowNull ArgumentCompleter
48
+ array bool byte char CmdletBinding datetime decimal double DscResource
49
+ float single guid hashtable int int32 int16 long int64 ciminstance
50
+ cimclass cimtype cimconverter IPEndpoint NullString OutputType
51
+ ObjectSecurity Parameter PhysicalAddress pscredential PSDefaultValue
52
+ pslistmodifier psobject pscustomobject psprimitivedictionary ref
53
+ PSTypeNameAttribute regex DscProperty sbyte string SupportsWildcards
54
+ switch cultureinfo bigint securestring timespan uint16 uint32 uint64
55
+ uri ValidateCount ValidateDrive ValidateLength ValidateNotNull
56
+ ValidateNotNullOrEmpty ValidatePattern ValidateRange ValidateScript
57
+ ValidateSet ValidateTrustedData ValidateUserDrive version void
58
+ ipaddress DscLocalConfigurationManager WildcardPattern X509Certificate
59
+ X500DistinguishedName xml CimSession adsi adsisearcher wmiclass wmi
60
+ wmisearcher mailaddress scriptblock psvariable type psmoduleinfo
61
+ powershell runspacefactory runspace initialsessionstate psscriptmethod
62
+ psscriptproperty psnoteproperty psaliasproperty psvariableproperty
31
63
  ).join('|')
32
64
 
33
65
  OPERATORS = %w(
34
- -split -isplit -csplit -join -is -isnot -as -eq -ieq -ceq -ne -ine
35
- -cne -gt -igt -cgt -ge -ige -cge -lt -ilt -clt -le -ile -cle -like
36
- -ilike -clike -notlike -inotlike -cnotlike -match -imatch -cmatch
37
- -notmatch -inotmatch -cnotmatch -contains -icontains -ccontains
38
- -notcontains -inotcontains -cnotcontains -replace -ireplace
39
- -creplace -band -bor -bxor -and -or -xor \. & = \+= -= \*= \/= %=
66
+ -split -isplit -csplit -join -is -isnot -as -eq -ieq -ceq -ne -ine -cne
67
+ -gt -igt -cgt -ge -ige -cge -lt -ilt -clt -le -ile -cle -like -ilike
68
+ -clike -notlike -inotlike -cnotlike -match -imatch -cmatch -notmatch
69
+ -inotmatch -cnotmatch -contains -icontains -ccontains -notcontains
70
+ -inotcontains -cnotcontains -replace -ireplace -creplace -shl -shr -band
71
+ -bor -bxor -and -or -xor -not \+= -= \*= \/= %=
40
72
  ).join('|')
41
73
 
42
- BUILTINS = %w(
43
- Add-ProvisionedAppxPackage Add-WindowsFeature Apply-WindowsUnattend
44
- Begin-WebCommitDelay Disable-PhysicalDiskIndication
45
- Disable-StorageDiagnosticLog Enable-PhysicalDiskIndication
46
- Enable-StorageDiagnosticLog End-WebCommitDelay Expand-IscsiVirtualDisk
47
- Flush-Volume Get-DiskSNV Get-PhysicalDiskSNV Get-ProvisionedAppxPackage
48
- Get-StorageEnclosureSNV Initialize-Volume Move-SmbClient
49
- Remove-ProvisionedAppxPackage Remove-WindowsFeature Write-FileSystemCache
50
- Add-BCDataCacheExtension Add-DnsClientNrptRule Add-DtcClusterTMMapping
51
- Add-EtwTraceProvider Add-InitiatorIdToMaskingSet Add-MpPreference
52
- Add-NetEventNetworkAdapter Add-NetEventPacketCaptureProvider
53
- Add-NetEventProvider Add-NetEventVFPProvider Add-NetEventVmNetworkAdapter
54
- Add-NetEventVmSwitch Add-NetEventVmSwitchProvider
55
- Add-NetEventWFPCaptureProvider Add-NetIPHttpsCertBinding Add-NetLbfoTeamMember
56
- Add-NetLbfoTeamNic Add-NetNatExternalAddress Add-NetNatStaticMapping
57
- Add-NetSwitchTeamMember Add-OdbcDsn Add-PartitionAccessPath Add-PhysicalDisk
58
- Add-Printer Add-PrinterDriver Add-PrinterPort Add-RDServer Add-RDSessionHost
59
- Add-RDVirtualDesktopToCollection Add-TargetPortToMaskingSet
60
- Add-VirtualDiskToMaskingSet Add-VpnConnection Add-VpnConnectionRoute
61
- Add-VpnConnectionTriggerApplication Add-VpnConnectionTriggerDnsConfiguration
62
- Add-VpnConnectionTriggerTrustedNetwork Block-FileShareAccess
63
- Block-SmbShareAccess Clear-AssignedAccess Clear-BCCache Clear-Disk
64
- Clear-DnsClientCache Clear-FileStorageTier Clear-PcsvDeviceLog
65
- Clear-StorageDiagnosticInfo Close-SmbOpenFile Close-SmbSession Compress-Archive
66
- Configuration Connect-IscsiTarget Connect-VirtualDisk ConvertFrom-SddlString
67
- Copy-NetFirewallRule Copy-NetIPsecMainModeCryptoSet Copy-NetIPsecMainModeRule
68
- Copy-NetIPsecPhase1AuthSet Copy-NetIPsecPhase2AuthSet
69
- Copy-NetIPsecQuickModeCryptoSet Copy-NetIPsecRule Debug-FileShare
70
- Debug-MMAppPrelaunch Debug-StorageSubSystem Debug-Volume Disable-BC
71
- Disable-BCDowngrading Disable-BCServeOnBattery
72
- Disable-DAManualEntryPointSelection Disable-DscDebug Disable-MMAgent
73
- Disable-NetAdapter Disable-NetAdapterBinding Disable-NetAdapterChecksumOffload
74
- Disable-NetAdapterEncapsulatedPacketTaskOffload Disable-NetAdapterIPsecOffload
75
- Disable-NetAdapterLso Disable-NetAdapterPacketDirect
76
- Disable-NetAdapterPowerManagement Disable-NetAdapterQos Disable-NetAdapterRdma
77
- Disable-NetAdapterRsc Disable-NetAdapterRss Disable-NetAdapterSriov
78
- Disable-NetAdapterVmq Disable-NetDnsTransitionConfiguration
79
- Disable-NetFirewallRule Disable-NetIPHttpsProfile Disable-NetIPsecMainModeRule
80
- Disable-NetIPsecRule Disable-NetNatTransitionConfiguration
81
- Disable-NetworkSwitchEthernetPort Disable-NetworkSwitchFeature
82
- Disable-NetworkSwitchVlan Disable-OdbcPerfCounter
83
- Disable-PhysicalDiskIdentification Disable-PnpDevice Disable-PSTrace
84
- Disable-PSWSManCombinedTrace Disable-RDVirtualDesktopADMachineAccountReuse
85
- Disable-ScheduledTask Disable-ServerManagerStandardUserRemoting
86
- Disable-SmbDelegation Disable-StorageEnclosureIdentification
87
- Disable-StorageHighAvailability Disable-StorageMaintenanceMode Disable-Ual
88
- Disable-WdacBidTrace Disable-WSManTrace Disconnect-IscsiTarget
89
- Disconnect-NfsSession Disconnect-RDUser Disconnect-VirtualDisk
90
- Dismount-DiskImage Enable-BCDistributed Enable-BCDowngrading
91
- Enable-BCHostedClient Enable-BCHostedServer Enable-BCLocal
92
- Enable-BCServeOnBattery Enable-DAManualEntryPointSelection Enable-DscDebug
93
- Enable-MMAgent Enable-NetAdapter Enable-NetAdapterBinding
94
- Enable-NetAdapterChecksumOffload Enable-NetAdapterEncapsulatedPacketTaskOffload
95
- Enable-NetAdapterIPsecOffload Enable-NetAdapterLso
96
- Enable-NetAdapterPacketDirect Enable-NetAdapterPowerManagement
97
- Enable-NetAdapterQos Enable-NetAdapterRdma Enable-NetAdapterRsc
98
- Enable-NetAdapterRss Enable-NetAdapterSriov Enable-NetAdapterVmq
99
- Enable-NetDnsTransitionConfiguration Enable-NetFirewallRule
100
- Enable-NetIPHttpsProfile Enable-NetIPsecMainModeRule Enable-NetIPsecRule
101
- Enable-NetNatTransitionConfiguration Enable-NetworkSwitchEthernetPort
102
- Enable-NetworkSwitchFeature Enable-NetworkSwitchVlan Enable-OdbcPerfCounter
103
- Enable-PhysicalDiskIdentification Enable-PnpDevice Enable-PSTrace
104
- Enable-PSWSManCombinedTrace Enable-RDVirtualDesktopADMachineAccountReuse
105
- Enable-ScheduledTask Enable-ServerManagerStandardUserRemoting
106
- Enable-SmbDelegation Enable-StorageEnclosureIdentification
107
- Enable-StorageHighAvailability Enable-StorageMaintenanceMode Enable-Ual
108
- Enable-WdacBidTrace Enable-WSManTrace Expand-Archive Export-BCCachePackage
109
- Export-BCSecretKey Export-IscsiTargetServerConfiguration
110
- Export-ODataEndpointProxy Export-RDPersonalSessionDesktopAssignment
111
- Export-RDPersonalVirtualDesktopAssignment Export-ScheduledTask
112
- Find-NetIPsecRule Find-NetRoute Format-Hex Format-Volume Get-AppBackgroundTask
113
- Get-AppvVirtualProcess Get-AppxLastError Get-AppxLog Get-AssignedAccess
114
- Get-AutologgerConfig Get-BCClientConfiguration Get-BCContentServerConfiguration
115
- Get-BCDataCache Get-BCDataCacheExtension Get-BCHashCache
116
- Get-BCHostedCacheServerConfiguration Get-BCNetworkConfiguration Get-BCStatus
117
- Get-ClusteredScheduledTask Get-DAClientExperienceConfiguration
118
- Get-DAConnectionStatus Get-DAEntryPointTableItem Get-DedupProperties Get-Disk
119
- Get-DiskImage Get-DiskStorageNodeView Get-DisplayResolution Get-DnsClient
120
- Get-DnsClientCache Get-DnsClientGlobalSetting Get-DnsClientNrptGlobal
121
- Get-DnsClientNrptPolicy Get-DnsClientNrptRule Get-DnsClientServerAddress
122
- Get-DscConfiguration Get-DscConfigurationStatus
123
- Get-DscLocalConfigurationManager Get-DscResource Get-Dtc
124
- Get-DtcAdvancedHostSetting Get-DtcAdvancedSetting Get-DtcClusterDefault
125
- Get-DtcClusterTMMapping Get-DtcDefault Get-DtcLog Get-DtcNetworkSetting
126
- Get-DtcTransaction Get-DtcTransactionsStatistics
127
- Get-DtcTransactionsTraceSession Get-DtcTransactionsTraceSetting
128
- Get-EtwTraceProvider Get-EtwTraceSession Get-FileHash Get-FileIntegrity
129
- Get-FileShare Get-FileShareAccessControlEntry Get-FileStorageTier
130
- Get-InitiatorId Get-InitiatorPort Get-IscsiConnection Get-IscsiSession
131
- Get-IscsiTarget Get-IscsiTargetPortal Get-IseSnippet Get-LogProperties
132
- Get-MaskingSet Get-MMAgent Get-MpComputerStatus Get-MpPreference Get-MpThreat
133
- Get-MpThreatCatalog Get-MpThreatDetection Get-NCSIPolicyConfiguration
134
- Get-Net6to4Configuration Get-NetAdapter Get-NetAdapterAdvancedProperty
135
- Get-NetAdapterBinding Get-NetAdapterChecksumOffload
136
- Get-NetAdapterEncapsulatedPacketTaskOffload Get-NetAdapterHardwareInfo
137
- Get-NetAdapterIPsecOffload Get-NetAdapterLso Get-NetAdapterPacketDirect
138
- Get-NetAdapterPowerManagement Get-NetAdapterQos Get-NetAdapterRdma
139
- Get-NetAdapterRsc Get-NetAdapterRss Get-NetAdapterSriov Get-NetAdapterSriovVf
140
- Get-NetAdapterStatistics Get-NetAdapterVmq Get-NetAdapterVMQQueue
141
- Get-NetAdapterVPort Get-NetCompartment Get-NetConnectionProfile
142
- Get-NetDnsTransitionConfiguration Get-NetDnsTransitionMonitoring
143
- Get-NetEventNetworkAdapter Get-NetEventPacketCaptureProvider
144
- Get-NetEventProvider Get-NetEventSession Get-NetEventVFPProvider
145
- Get-NetEventVmNetworkAdapter Get-NetEventVmSwitch Get-NetEventVmSwitchProvider
146
- Get-NetEventWFPCaptureProvider Get-NetFirewallAddressFilter
147
- Get-NetFirewallApplicationFilter Get-NetFirewallInterfaceFilter
148
- Get-NetFirewallInterfaceTypeFilter Get-NetFirewallPortFilter
149
- Get-NetFirewallProfile Get-NetFirewallRule Get-NetFirewallSecurityFilter
150
- Get-NetFirewallServiceFilter Get-NetFirewallSetting Get-NetIPAddress
151
- Get-NetIPConfiguration Get-NetIPHttpsConfiguration Get-NetIPHttpsState
152
- Get-NetIPInterface Get-NetIPsecDospSetting Get-NetIPsecMainModeCryptoSet
153
- Get-NetIPsecMainModeRule Get-NetIPsecMainModeSA Get-NetIPsecPhase1AuthSet
154
- Get-NetIPsecPhase2AuthSet Get-NetIPsecQuickModeCryptoSet
155
- Get-NetIPsecQuickModeSA Get-NetIPsecRule Get-NetIPv4Protocol
156
- Get-NetIPv6Protocol Get-NetIsatapConfiguration Get-NetLbfoTeam
157
- Get-NetLbfoTeamMember Get-NetLbfoTeamNic Get-NetNat Get-NetNatExternalAddress
158
- Get-NetNatGlobal Get-NetNatSession Get-NetNatStaticMapping
159
- Get-NetNatTransitionConfiguration Get-NetNatTransitionMonitoring
160
- Get-NetNeighbor Get-NetOffloadGlobalSetting Get-NetPrefixPolicy
161
- Get-NetQosPolicy Get-NetRoute Get-NetSwitchTeam Get-NetSwitchTeamMember
162
- Get-NetTCPConnection Get-NetTCPSetting Get-NetTeredoConfiguration
163
- Get-NetTeredoState Get-NetTransportFilter Get-NetUDPEndpoint Get-NetUDPSetting
164
- Get-NetworkSwitchEthernetPort Get-NetworkSwitchFeature
165
- Get-NetworkSwitchGlobalData Get-NetworkSwitchVlan Get-NfsClientConfiguration
166
- Get-NfsClientgroup Get-NfsClientLock Get-NfsMappingStore Get-NfsMountedClient
167
- Get-NfsNetgroupStore Get-NfsOpenFile Get-NfsServerConfiguration Get-NfsSession
168
- Get-NfsShare Get-NfsSharePermission Get-NfsStatistics Get-OdbcDriver
169
- Get-OdbcDsn Get-OdbcPerfCounter Get-OffloadDataTransferSetting Get-Partition
170
- Get-PartitionSupportedSize Get-PcsvDevice Get-PcsvDeviceLog Get-PhysicalDisk
171
- Get-PhysicalDiskStorageNodeView Get-PhysicalExtent
172
- Get-PhysicalExtentAssociation Get-PlatformIdentifier Get-PnpDevice
173
- Get-PnpDeviceProperty Get-PrintConfiguration Get-Printer Get-PrinterDriver
174
- Get-PrinterPort Get-PrinterProperty Get-PrintJob Get-RDAvailableApp
175
- Get-RDCertificate Get-RDConnectionBrokerHighAvailability
176
- Get-RDDeploymentGatewayConfiguration Get-RDFileTypeAssociation
177
- Get-RDLicenseConfiguration Get-RDPersonalSessionDesktopAssignment
178
- Get-RDPersonalVirtualDesktopAssignment
179
- Get-RDPersonalVirtualDesktopPatchSchedule Get-RDRemoteApp Get-RDRemoteDesktop
180
- Get-RDServer Get-RDSessionCollection Get-RDSessionCollectionConfiguration
181
- Get-RDSessionHost Get-RDUserSession Get-RDVirtualDesktop
182
- Get-RDVirtualDesktopCollection Get-RDVirtualDesktopCollectionConfiguration
183
- Get-RDVirtualDesktopCollectionJobStatus Get-RDVirtualDesktopConcurrency
184
- Get-RDVirtualDesktopIdleCount Get-RDVirtualDesktopTemplateExportPath
185
- Get-RDWorkspace Get-ResiliencySetting Get-ScheduledTask Get-ScheduledTaskInfo
186
- Get-SilComputer Get-SilComputerIdentity Get-SilData Get-SilLogging
187
- Get-SilSoftware Get-SilUalAccess Get-SilWindowsUpdate Get-SmbBandWidthLimit
188
- Get-SmbClientConfiguration Get-SmbClientNetworkInterface Get-SmbConnection
189
- Get-SmbDelegation Get-SmbMapping Get-SmbMultichannelConnection
190
- Get-SmbMultichannelConstraint Get-SmbOpenFile Get-SmbServerConfiguration
191
- Get-SmbServerNetworkInterface Get-SmbSession Get-SmbShare Get-SmbShareAccess
192
- Get-SmbWitnessClient Get-SMCounterSample Get-SMPerformanceCollector
193
- Get-SMServerBpaResult Get-SMServerClusterName Get-SMServerEvent
194
- Get-SMServerFeature Get-SMServerInventory Get-SMServerService Get-StartApps
195
- Get-StorageAdvancedProperty Get-StorageDiagnosticInfo Get-StorageEnclosure
196
- Get-StorageEnclosureStorageNodeView Get-StorageEnclosureVendorData
197
- Get-StorageFaultDomain Get-StorageFileServer Get-StorageFirmwareInformation
198
- Get-StorageHealthAction Get-StorageHealthReport Get-StorageHealthSetting
199
- Get-StorageJob Get-StorageNode Get-StoragePool Get-StorageProvider
200
- Get-StorageReliabilityCounter Get-StorageSetting Get-StorageSubSystem
201
- Get-StorageTier Get-StorageTierSupportedSize Get-SupportedClusterSizes
202
- Get-SupportedFileSystems Get-TargetPort Get-TargetPortal Get-Ual
203
- Get-UalDailyAccess Get-UalDailyDeviceAccess Get-UalDailyUserAccess
204
- Get-UalDeviceAccess Get-UalDns Get-UalHyperV Get-UalOverview
205
- Get-UalServerDevice Get-UalServerUser Get-UalSystemId Get-UalUserAccess
206
- Get-VirtualDisk Get-VirtualDiskSupportedSize Get-Volume
207
- Get-VolumeCorruptionCount Get-VolumeScrubPolicy Get-VpnConnection
208
- Get-VpnConnectionTrigger Get-WdacBidTrace Get-WindowsFeature
209
- Get-WindowsUpdateLog Grant-FileShareAccess Grant-NfsSharePermission
210
- Grant-RDOUAccess Grant-SmbShareAccess Hide-VirtualDisk Import-BCCachePackage
211
- Import-BCSecretKey Import-IscsiTargetServerConfiguration Import-IseSnippet
212
- Import-PowerShellDataFile Import-RDPersonalSessionDesktopAssignment
213
- Import-RDPersonalVirtualDesktopAssignment Initialize-Disk Install-Dtc
214
- Install-WindowsFeature Invoke-AsWorkflow Invoke-RDUserLogoff Mount-DiskImage
215
- Move-RDVirtualDesktop Move-SmbWitnessClient New-AutologgerConfig
216
- New-DAEntryPointTableItem New-DscChecksum New-EapConfiguration
217
- New-EtwTraceSession New-FileShare New-Guid New-IscsiTargetPortal New-IseSnippet
218
- New-MaskingSet New-NetAdapterAdvancedProperty New-NetEventSession
219
- New-NetFirewallRule New-NetIPAddress New-NetIPHttpsConfiguration
220
- New-NetIPsecDospSetting New-NetIPsecMainModeCryptoSet New-NetIPsecMainModeRule
221
- New-NetIPsecPhase1AuthSet New-NetIPsecPhase2AuthSet
222
- New-NetIPsecQuickModeCryptoSet New-NetIPsecRule New-NetLbfoTeam New-NetNat
223
- New-NetNatTransitionConfiguration New-NetNeighbor New-NetQosPolicy New-NetRoute
224
- New-NetSwitchTeam New-NetTransportFilter New-NetworkSwitchVlan
225
- New-NfsClientgroup New-NfsShare New-Partition New-PSWorkflowSession
226
- New-RDCertificate New-RDPersonalVirtualDesktopPatchSchedule New-RDRemoteApp
227
- New-RDSessionCollection New-RDSessionDeployment New-RDVirtualDesktopCollection
228
- New-RDVirtualDesktopDeployment New-ScheduledTask New-ScheduledTaskAction
229
- New-ScheduledTaskPrincipal New-ScheduledTaskSettingsSet
230
- New-ScheduledTaskTrigger New-SmbMapping New-SmbMultichannelConstraint
231
- New-SmbShare New-StorageFileServer New-StoragePool
232
- New-StorageSubsystemVirtualDisk New-StorageTier New-TemporaryFile
233
- New-VirtualDisk New-VirtualDiskClone New-VirtualDiskSnapshot New-Volume
234
- New-VpnServerAddress Open-NetGPO Optimize-StoragePool Optimize-Volume
235
- Publish-BCFileContent Publish-BCWebContent Publish-SilData Read-PrinterNfcTag
236
- Register-ClusteredScheduledTask Register-DnsClient Register-IscsiSession
237
- Register-ScheduledTask Register-StorageSubsystem Remove-AutologgerConfig
238
- Remove-BCDataCacheExtension Remove-DAEntryPointTableItem
239
- Remove-DnsClientNrptRule Remove-DscConfigurationDocument
240
- Remove-DtcClusterTMMapping Remove-EtwTraceProvider Remove-EtwTraceSession
241
- Remove-FileShare Remove-InitiatorId Remove-InitiatorIdFromMaskingSet
242
- Remove-IscsiTargetPortal Remove-MaskingSet Remove-MpPreference Remove-MpThreat
243
- Remove-NetAdapterAdvancedProperty Remove-NetEventNetworkAdapter
244
- Remove-NetEventPacketCaptureProvider Remove-NetEventProvider
245
- Remove-NetEventSession Remove-NetEventVFPProvider
246
- Remove-NetEventVmNetworkAdapter Remove-NetEventVmSwitch
247
- Remove-NetEventVmSwitchProvider Remove-NetEventWFPCaptureProvider
248
- Remove-NetFirewallRule Remove-NetIPAddress Remove-NetIPHttpsCertBinding
249
- Remove-NetIPHttpsConfiguration Remove-NetIPsecDospSetting
250
- Remove-NetIPsecMainModeCryptoSet Remove-NetIPsecMainModeRule
251
- Remove-NetIPsecMainModeSA Remove-NetIPsecPhase1AuthSet
252
- Remove-NetIPsecPhase2AuthSet Remove-NetIPsecQuickModeCryptoSet
253
- Remove-NetIPsecQuickModeSA Remove-NetIPsecRule Remove-NetLbfoTeam
254
- Remove-NetLbfoTeamMember Remove-NetLbfoTeamNic Remove-NetNat
255
- Remove-NetNatExternalAddress Remove-NetNatStaticMapping
256
- Remove-NetNatTransitionConfiguration Remove-NetNeighbor Remove-NetQosPolicy
257
- Remove-NetRoute Remove-NetSwitchTeam Remove-NetSwitchTeamMember
258
- Remove-NetTransportFilter Remove-NetworkSwitchEthernetPortIPAddress
259
- Remove-NetworkSwitchVlan Remove-NfsClientgroup Remove-NfsShare Remove-OdbcDsn
260
- Remove-Partition Remove-PartitionAccessPath Remove-PhysicalDisk Remove-Printer
261
- Remove-PrinterDriver Remove-PrinterPort Remove-PrintJob
262
- Remove-RDDatabaseConnectionString Remove-RDPersonalSessionDesktopAssignment
263
- Remove-RDPersonalVirtualDesktopAssignment
264
- Remove-RDPersonalVirtualDesktopPatchSchedule Remove-RDRemoteApp Remove-RDServer
265
- Remove-RDSessionCollection Remove-RDSessionHost
266
- Remove-RDVirtualDesktopCollection Remove-RDVirtualDesktopFromCollection
267
- Remove-SmbBandwidthLimit Remove-SmbMapping Remove-SmbMultichannelConstraint
268
- Remove-SmbShare Remove-SMServerPerformanceLog Remove-StorageFileServer
269
- Remove-StorageHealthSetting Remove-StoragePool Remove-StorageTier
270
- Remove-TargetPortFromMaskingSet Remove-VirtualDisk
271
- Remove-VirtualDiskFromMaskingSet Remove-VpnConnection Remove-VpnConnectionRoute
272
- Remove-VpnConnectionTriggerApplication
273
- Remove-VpnConnectionTriggerDnsConfiguration
274
- Remove-VpnConnectionTriggerTrustedNetwork Rename-DAEntryPointTableItem
275
- Rename-MaskingSet Rename-NetAdapter Rename-NetFirewallRule
276
- Rename-NetIPHttpsConfiguration Rename-NetIPsecMainModeCryptoSet
277
- Rename-NetIPsecMainModeRule Rename-NetIPsecPhase1AuthSet
278
- Rename-NetIPsecPhase2AuthSet Rename-NetIPsecQuickModeCryptoSet
279
- Rename-NetIPsecRule Rename-NetLbfoTeam Rename-NetSwitchTeam
280
- Rename-NfsClientgroup Rename-Printer Repair-FileIntegrity Repair-VirtualDisk
281
- Repair-Volume Reset-BC Reset-DAClientExperienceConfiguration
282
- Reset-DAEntryPointTableItem Reset-DtcLog Reset-NCSIPolicyConfiguration
283
- Reset-Net6to4Configuration Reset-NetAdapterAdvancedProperty
284
- Reset-NetDnsTransitionConfiguration Reset-NetIPHttpsConfiguration
285
- Reset-NetIsatapConfiguration Reset-NetTeredoConfiguration Reset-NfsStatistics
286
- Reset-PhysicalDisk Reset-StorageReliabilityCounter Resize-Partition
287
- Resize-StorageTier Resize-VirtualDisk Resolve-NfsMappedIdentity
288
- Restart-NetAdapter Restart-PcsvDevice Restart-PrintJob Restore-DscConfiguration
289
- Restore-NetworkSwitchConfiguration Resume-PrintJob Revoke-FileShareAccess
290
- Revoke-NfsClientLock Revoke-NfsMountedClient Revoke-NfsOpenFile
291
- Revoke-NfsSharePermission Revoke-SmbShareAccess Save-NetGPO
292
- Save-NetworkSwitchConfiguration Send-EtwTraceSession Send-RDUserMessage
293
- Set-AssignedAccess Set-AutologgerConfig Set-BCAuthentication Set-BCCache
294
- Set-BCDataCacheEntryMaxAge Set-BCMinSMBLatency Set-BCSecretKey
295
- Set-ClusteredScheduledTask Set-DAClientExperienceConfiguration
296
- Set-DAEntryPointTableItem Set-Disk Set-DisplayResolution Set-DnsClient
297
- Set-DnsClientGlobalSetting Set-DnsClientNrptGlobal Set-DnsClientNrptRule
298
- Set-DnsClientServerAddress Set-DtcAdvancedHostSetting Set-DtcAdvancedSetting
299
- Set-DtcClusterDefault Set-DtcClusterTMMapping Set-DtcDefault Set-DtcLog
300
- Set-DtcNetworkSetting Set-DtcTransaction Set-DtcTransactionsTraceSession
301
- Set-DtcTransactionsTraceSetting Set-EtwTraceProvider Set-EtwTraceSession
302
- Set-FileIntegrity Set-FileShare Set-FileStorageTier Set-InitiatorPort
303
- Set-IscsiChapSecret Set-LogProperties Set-MMAgent Set-MpPreference
304
- Set-NCSIPolicyConfiguration Set-Net6to4Configuration Set-NetAdapter
305
- Set-NetAdapterAdvancedProperty Set-NetAdapterBinding
306
- Set-NetAdapterChecksumOffload Set-NetAdapterEncapsulatedPacketTaskOffload
307
- Set-NetAdapterIPsecOffload Set-NetAdapterLso Set-NetAdapterPacketDirect
308
- Set-NetAdapterPowerManagement Set-NetAdapterQos Set-NetAdapterRdma
309
- Set-NetAdapterRsc Set-NetAdapterRss Set-NetAdapterSriov Set-NetAdapterVmq
310
- Set-NetConnectionProfile Set-NetDnsTransitionConfiguration
311
- Set-NetEventPacketCaptureProvider Set-NetEventProvider Set-NetEventSession
312
- Set-NetEventVFPProvider Set-NetEventVmSwitchProvider
313
- Set-NetEventWFPCaptureProvider Set-NetFirewallAddressFilter
314
- Set-NetFirewallApplicationFilter Set-NetFirewallInterfaceFilter
315
- Set-NetFirewallInterfaceTypeFilter Set-NetFirewallPortFilter
316
- Set-NetFirewallProfile Set-NetFirewallRule Set-NetFirewallSecurityFilter
317
- Set-NetFirewallServiceFilter Set-NetFirewallSetting Set-NetIPAddress
318
- Set-NetIPHttpsConfiguration Set-NetIPInterface Set-NetIPsecDospSetting
319
- Set-NetIPsecMainModeCryptoSet Set-NetIPsecMainModeRule
320
- Set-NetIPsecPhase1AuthSet Set-NetIPsecPhase2AuthSet
321
- Set-NetIPsecQuickModeCryptoSet Set-NetIPsecRule Set-NetIPv4Protocol
322
- Set-NetIPv6Protocol Set-NetIsatapConfiguration Set-NetLbfoTeam
323
- Set-NetLbfoTeamMember Set-NetLbfoTeamNic Set-NetNat Set-NetNatGlobal
324
- Set-NetNatTransitionConfiguration Set-NetNeighbor Set-NetOffloadGlobalSetting
325
- Set-NetQosPolicy Set-NetRoute Set-NetTCPSetting Set-NetTeredoConfiguration
326
- Set-NetUDPSetting Set-NetworkSwitchEthernetPortIPAddress
327
- Set-NetworkSwitchPortMode Set-NetworkSwitchPortProperty
328
- Set-NetworkSwitchVlanProperty Set-NfsClientConfiguration Set-NfsClientgroup
329
- Set-NfsMappingStore Set-NfsNetgroupStore Set-NfsServerConfiguration
330
- Set-NfsShare Set-OdbcDriver Set-OdbcDsn Set-Partition
331
- Set-PcsvDeviceBootConfiguration Set-PcsvDeviceNetworkConfiguration
332
- Set-PcsvDeviceUserPassword Set-PhysicalDisk Set-PrintConfiguration Set-Printer
333
- Set-PrinterProperty Set-RDActiveManagementServer Set-RDCertificate
334
- Set-RDClientAccessName Set-RDConnectionBrokerHighAvailability
335
- Set-RDDatabaseConnectionString Set-RDDeploymentGatewayConfiguration
336
- Set-RDFileTypeAssociation Set-RDLicenseConfiguration
337
- Set-RDPersonalSessionDesktopAssignment Set-RDPersonalVirtualDesktopAssignment
338
- Set-RDPersonalVirtualDesktopPatchSchedule Set-RDRemoteApp Set-RDRemoteDesktop
339
- Set-RDSessionCollectionConfiguration Set-RDSessionHost
340
- Set-RDVirtualDesktopCollectionConfiguration Set-RDVirtualDesktopConcurrency
341
- Set-RDVirtualDesktopIdleCount Set-RDVirtualDesktopTemplateExportPath
342
- Set-RDWorkspace Set-ResiliencySetting Set-ScheduledTask Set-SilLogging
343
- Set-SmbBandwidthLimit Set-SmbClientConfiguration Set-SmbPathAcl
344
- Set-SmbServerConfiguration Set-SmbShare Set-StorageFileServer
345
- Set-StorageHealthSetting Set-StoragePool Set-StorageProvider Set-StorageSetting
346
- Set-StorageSubSystem Set-StorageTier Set-VirtualDisk Set-Volume
347
- Set-VolumeScrubPolicy Set-VpnConnection Set-VpnConnectionIPsecConfiguration
348
- Set-VpnConnectionProxy Set-VpnConnectionTriggerDnsConfiguration
349
- Set-VpnConnectionTriggerTrustedNetwork Show-NetFirewallRule Show-NetIPsecRule
350
- Show-VirtualDisk Start-AppBackgroundTask Start-AppvVirtualProcess
351
- Start-AutologgerConfig Start-Dtc Start-DtcTransactionsTraceSession Start-MpScan
352
- Start-MpWDOScan Start-NetEventSession Start-PcsvDevice Start-ScheduledTask
353
- Start-SilLogging Start-SMPerformanceCollector Start-StorageDiagnosticLog
354
- Start-Trace Stop-DscConfiguration Stop-Dtc Stop-DtcTransactionsTraceSession
355
- Stop-NetEventSession Stop-PcsvDevice Stop-RDVirtualDesktopCollectionJob
356
- Stop-ScheduledTask Stop-SilLogging Stop-SMPerformanceCollector
357
- Stop-StorageDiagnosticLog Stop-StorageJob Stop-Trace Suspend-PrintJob
358
- Sync-NetIPsecRule Test-Dtc Test-NetConnection Test-NfsMappingStore
359
- Test-RDOUAccess Test-RDVirtualDesktopADMachineAccountReuse
360
- Unblock-FileShareAccess Unblock-SmbShareAccess Uninstall-Dtc
361
- Uninstall-WindowsFeature Unregister-AppBackgroundTask
362
- Unregister-ClusteredScheduledTask Unregister-IscsiSession
363
- Unregister-ScheduledTask Unregister-StorageSubsystem Update-Disk
364
- Update-DscConfiguration Update-HostStorageCache Update-IscsiTarget
365
- Update-IscsiTargetPortal Update-MpSignature Update-NetIPsecRule
366
- Update-RDVirtualDesktopCollection Update-SmbMultichannelConnection
367
- Update-StorageFirmware Update-StoragePool Update-StorageProviderCache
368
- Write-DtcTransactionsTraceSession Write-PrinterNfcTag Write-VolumeCache
369
- Add-ADCentralAccessPolicyMember Add-ADComputerServiceAccount
370
- Add-ADDomainControllerPasswordReplicationPolicy
371
- Add-ADFineGrainedPasswordPolicySubject Add-ADGroupMember
372
- Add-ADPrincipalGroupMembership Add-ADResourcePropertyListMember
373
- Add-AppvClientConnectionGroup Add-AppvClientPackage Add-AppvPublishingServer
374
- Add-AppxPackage Add-AppxProvisionedPackage Add-AppxVolume Add-BitsFile
375
- Add-CertificateEnrollmentPolicyServer Add-ClusteriSCSITargetServerRole
376
- Add-Computer Add-Content Add-IscsiVirtualDiskTargetMapping Add-JobTrigger
377
- Add-KdsRootKey Add-LocalGroupMember Add-Member Add-SignerRule Add-Type
378
- Add-WebConfiguration Add-WebConfigurationLock Add-WebConfigurationProperty
379
- Add-WindowsCapability Add-WindowsDriver Add-WindowsImage Add-WindowsPackage
380
- Backup-AuditPolicy Backup-SecurityPolicy Backup-WebConfiguration
381
- Checkpoint-Computer Checkpoint-IscsiVirtualDisk Clear-ADAccountExpiration
382
- Clear-ADClaimTransformLink Clear-Content Clear-EventLog
383
- Clear-IISCentralCertProvider Clear-IISConfigCollection Clear-Item
384
- Clear-ItemProperty Clear-KdsCache Clear-RecycleBin Clear-Tpm
385
- Clear-UevAppxPackage Clear-UevConfiguration Clear-Variable
386
- Clear-WebCentralCertProvider Clear-WebConfiguration
387
- Clear-WebRequestTracingSetting Clear-WebRequestTracingSettings
388
- Clear-WindowsCorruptMountPoint Compare-Object Complete-BitsTransfer
389
- Complete-DtcDiagnosticTransaction Complete-Transaction Confirm-SecureBootUEFI
390
- Connect-WSMan ConvertFrom-CIPolicy ConvertFrom-Csv ConvertFrom-Json
391
- ConvertFrom-SecureString ConvertFrom-String ConvertFrom-StringData
392
- Convert-IscsiVirtualDisk Convert-Path Convert-String ConvertTo-Csv
393
- ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-TpmOwnerAuth
394
- ConvertTo-WebApplication ConvertTo-Xml Copy-Item Copy-ItemProperty
395
- Debug-Process Debug-Runspace Disable-ADAccount Disable-ADOptionalFeature
396
- Disable-AppBackgroundTaskDiagnosticLog Disable-Appv
397
- Disable-AppvClientConnectionGroup Disable-ComputerRestore
398
- Disable-IISCentralCertProvider Disable-IISSharedConfig Disable-JobTrigger
399
- Disable-LocalUser Disable-PSBreakpoint Disable-RunspaceDebug
400
- Disable-ScheduledJob Disable-TlsCipherSuite Disable-TlsEccCurve
401
- Disable-TlsSessionTicketKey Disable-TpmAutoProvisioning Disable-Uev
402
- Disable-UevAppxPackage Disable-UevTemplate Disable-WebCentralCertProvider
403
- Disable-WebGlobalModule Disable-WebRequestTracing Disable-WindowsErrorReporting
404
- Disable-WindowsOptionalFeature Disable-WSManCredSSP Disconnect-WSMan
405
- Dismount-AppxVolume Dismount-IscsiVirtualDiskSnapshot Dismount-WindowsImage
406
- Edit-CIPolicyRule Enable-ADAccount Enable-ADOptionalFeature
407
- Enable-AppBackgroundTaskDiagnosticLog Enable-Appv
408
- Enable-AppvClientConnectionGroup Enable-ComputerRestore
409
- Enable-IISCentralCertProvider Enable-IISSharedConfig Enable-JobTrigger
410
- Enable-LocalUser Enable-PSBreakpoint Enable-RunspaceDebug Enable-ScheduledJob
411
- Enable-TlsCipherSuite Enable-TlsEccCurve Enable-TlsSessionTicketKey
412
- Enable-TpmAutoProvisioning Enable-Uev Enable-UevAppxPackage Enable-UevTemplate
413
- Enable-WebCentralCertProvider Enable-WebGlobalModule Enable-WebRequestTracing
414
- Enable-WindowsErrorReporting Enable-WindowsOptionalFeature Enable-WSManCredSSP
415
- Expand-WindowsCustomDataImage Expand-WindowsImage Export-Alias
416
- Export-BinaryMiLog Export-Certificate Export-Clixml Export-Counter Export-Csv
417
- Export-FormatData Export-IISConfiguration Export-IscsiVirtualDiskSnapshot
418
- Export-PfxCertificate Export-PSSession Export-StartLayout
419
- Export-TlsSessionTicketKey Export-UevConfiguration Export-UevPackage
420
- Export-WindowsDriver Export-WindowsImage Format-Custom Format-List
421
- Format-SecureBootUEFI Format-Table Format-Wide Get-Acl
422
- Get-ADAccountAuthorizationGroup Get-ADAccountResultantPasswordReplicationPolicy
423
- Get-ADAuthenticationPolicy Get-ADAuthenticationPolicySilo
424
- Get-ADCentralAccessPolicy Get-ADCentralAccessRule Get-ADClaimTransformPolicy
425
- Get-ADClaimType Get-ADComputer Get-ADComputerServiceAccount
426
- Get-ADDCCloningExcludedApplicationList Get-ADDefaultDomainPasswordPolicy
427
- Get-ADDomain Get-ADDomainController
428
- Get-ADDomainControllerPasswordReplicationPolicy
429
- Get-ADDomainControllerPasswordReplicationPolicyUsage
430
- Get-ADFineGrainedPasswordPolicy Get-ADFineGrainedPasswordPolicySubject
431
- Get-ADForest Get-ADGroup Get-ADGroupMember Get-ADObject Get-ADOptionalFeature
432
- Get-ADOrganizationalUnit Get-ADPrincipalGroupMembership
433
- Get-ADReplicationAttributeMetadata Get-ADReplicationConnection
434
- Get-ADReplicationFailure Get-ADReplicationPartnerMetadata
435
- Get-ADReplicationQueueOperation Get-ADReplicationSite Get-ADReplicationSiteLink
436
- Get-ADReplicationSiteLinkBridge Get-ADReplicationSubnet
437
- Get-ADReplicationUpToDatenessVectorTable Get-ADResourceProperty
438
- Get-ADResourcePropertyList Get-ADResourcePropertyValueType Get-ADRootDSE
439
- Get-ADServiceAccount Get-ADTrust Get-ADUser Get-ADUserResultantPasswordPolicy
440
- Get-Alias Get-AppLockerFileInformation Get-AppLockerPolicy
441
- Get-AppvClientApplication Get-AppvClientConfiguration
442
- Get-AppvClientConnectionGroup Get-AppvClientMode Get-AppvClientPackage
443
- Get-AppvPublishingServer Get-AppvStatus Get-AppxDefaultVolume Get-AppxPackage
444
- Get-AppxPackageManifest Get-AppxProvisionedPackage Get-AppxVolume
445
- Get-AuthenticodeSignature Get-BitsTransfer Get-BpaModel Get-BpaResult
446
- Get-Certificate Get-CertificateAutoEnrollmentPolicy
447
- Get-CertificateEnrollmentPolicyServer Get-CertificateNotificationTask
448
- Get-ChildItem Get-CimAssociatedInstance Get-CimClass Get-CimInstance
449
- Get-CimSession Get-CIPolicy Get-CIPolicyIdInfo Get-CIPolicyInfo Get-Clipboard
450
- Get-CmsMessage Get-ComputerInfo Get-ComputerRestorePoint Get-Content
451
- Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-DAPolicyChange
452
- Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy
453
- Get-FormatData Get-Host Get-HotFix Get-IISAppPool Get-IISCentralCertProvider
454
- Get-IISConfigAttributeValue Get-IISConfigCollection
455
- Get-IISConfigCollectionElement Get-IISConfigElement Get-IISConfigSection
456
- Get-IISServerManager Get-IISSharedConfig Get-IISSite Get-IscsiServerTarget
457
- Get-IscsiTargetServerSetting Get-IscsiVirtualDisk Get-IscsiVirtualDiskSnapshot
458
- Get-Item Get-ItemProperty Get-ItemPropertyValue Get-JobTrigger
459
- Get-KdsConfiguration Get-KdsRootKey Get-LocalGroup Get-LocalGroupMember
460
- Get-LocalUser Get-Location Get-Member Get-NfsMappedIdentity Get-NfsNetgroup
461
- Get-PfxCertificate Get-PfxData Get-Process Get-PSBreakpoint Get-PSCallStack
462
- Get-PSDrive Get-PSProvider Get-Random Get-Runspace Get-RunspaceDebug
463
- Get-ScheduledJob Get-ScheduledJobOption Get-SecureBootPolicy Get-SecureBootUEFI
464
- Get-Service Get-SystemDriver Get-TimeZone Get-TlsCipherSuite Get-TlsEccCurve
465
- Get-Tpm Get-TpmEndorsementKeyInfo Get-TpmSupportedFeature Get-TraceSource
466
- Get-Transaction Get-TroubleshootingPack Get-TypeData Get-UevAppxPackage
467
- Get-UevConfiguration Get-UevStatus Get-UevTemplate Get-UevTemplateProgram
468
- Get-UICulture Get-Unique Get-Variable Get-WebAppDomain Get-WebApplication
469
- Get-WebAppPoolState Get-WebBinding Get-WebCentralCertProvider Get-WebConfigFile
470
- Get-WebConfiguration Get-WebConfigurationBackup Get-WebConfigurationLocation
471
- Get-WebConfigurationLock Get-WebConfigurationProperty Get-WebFilePath
472
- Get-WebGlobalModule Get-WebHandler Get-WebItemState Get-WebManagedModule
473
- Get-WebRequest Get-Website Get-WebsiteState Get-WebURL Get-WebVirtualDirectory
474
- Get-WheaMemoryPolicy Get-WIMBootEntry
475
- Get-WinAcceptLanguageFromLanguageListOptOut
476
- Get-WinCultureFromLanguageListOptOut Get-WinDefaultInputMethodOverride
477
- Get-WindowsCapability Get-WindowsDeveloperLicense Get-WindowsDriver
478
- Get-WindowsEdition Get-WindowsErrorReporting Get-WindowsImage
479
- Get-WindowsImageContent Get-WindowsOptionalFeature Get-WindowsPackage
480
- Get-WindowsSearchSetting Get-WinEvent Get-WinHomeLocation
481
- Get-WinLanguageBarOption Get-WinSystemLocale Get-WinUILanguageOverride
482
- Get-WinUserLanguageList Get-WmiObject Get-WSManCredSSP Get-WSManInstance
483
- Grant-ADAuthenticationPolicySiloAccess Group-Object Import-Alias
484
- Import-BinaryMiLog Import-Certificate Import-Clixml Import-Counter Import-Csv
485
- Import-IscsiVirtualDisk Import-LocalizedData Import-PfxCertificate
486
- Import-PSSession Import-StartLayout Import-TpmOwnerAuth Import-UevConfiguration
487
- Initialize-Tpm Install-ADServiceAccount Install-NfsMappingStore Invoke-BpaModel
488
- Invoke-CimMethod Invoke-CommandInDesktopPackage Invoke-DscResource
489
- Invoke-Expression Invoke-Item Invoke-RestMethod Invoke-TroubleshootingPack
490
- Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction
491
- Join-DtcDiagnosticResourceManager Join-Path Limit-EventLog Measure-Command
492
- Measure-Object Merge-CIPolicy Mount-AppvClientConnectionGroup
493
- Mount-AppvClientPackage Mount-AppxVolume Mount-IscsiVirtualDiskSnapshot
494
- Mount-WindowsImage Move-ADDirectoryServer
495
- Move-ADDirectoryServerOperationMasterRole Move-ADObject Move-AppxPackage
496
- Move-Item Move-ItemProperty New-ADAuthenticationPolicy
497
- New-ADAuthenticationPolicySilo New-ADCentralAccessPolicy
498
- New-ADCentralAccessRule New-ADClaimTransformPolicy New-ADClaimType
499
- New-ADComputer New-ADDCCloneConfigFile New-ADFineGrainedPasswordPolicy
500
- New-ADGroup New-ADObject New-ADOrganizationalUnit New-ADReplicationSite
501
- New-ADReplicationSiteLink New-ADReplicationSiteLinkBridge
502
- New-ADReplicationSubnet New-ADResourceProperty New-ADResourcePropertyList
503
- New-ADServiceAccount New-ADUser New-Alias New-AppLockerPolicy
504
- New-CertificateNotificationTask New-CimInstance New-CimSession
505
- New-CimSessionOption New-CIPolicy New-CIPolicyRule New-DtcDiagnosticTransaction
506
- New-Event New-EventLog New-FileCatalog New-IISConfigCollectionElement
507
- New-IISSite New-IscsiServerTarget New-IscsiVirtualDisk New-Item
508
- New-ItemProperty New-JobTrigger New-LocalGroup New-LocalUser
509
- New-NetIPsecAuthProposal New-NetIPsecMainModeCryptoProposal
510
- New-NetIPsecQuickModeCryptoProposal New-NfsMappedIdentity New-NfsNetgroup
511
- New-Object New-PSDrive New-PSWorkflowExecutionOption New-ScheduledJobOption
512
- New-SelfSignedCertificate New-Service New-TimeSpan New-TlsSessionTicketKey
513
- New-Variable New-WebApplication New-WebAppPool New-WebBinding New-WebFtpSite
514
- New-WebGlobalModule New-WebHandler New-WebManagedModule New-WebServiceProxy
515
- New-Website New-WebVirtualDirectory New-WindowsCustomImage New-WindowsImage
516
- New-WinEvent New-WinUserLanguageList New-WSManInstance New-WSManSessionOption
517
- Optimize-WindowsImage Out-File Out-GridView Out-Printer Out-String Pop-Location
518
- Protect-CmsMessage Publish-AppvClientPackage Publish-DscConfiguration
519
- Push-Location Read-Host Receive-DtcDiagnosticTransaction
520
- Register-CimIndicationEvent Register-EngineEvent Register-ObjectEvent
521
- Register-ScheduledJob Register-UevTemplate Register-WmiEvent
522
- Remove-ADAuthenticationPolicy Remove-ADAuthenticationPolicySilo
523
- Remove-ADCentralAccessPolicy Remove-ADCentralAccessPolicyMember
524
- Remove-ADCentralAccessRule Remove-ADClaimTransformPolicy Remove-ADClaimType
525
- Remove-ADComputer Remove-ADComputerServiceAccount
526
- Remove-ADDomainControllerPasswordReplicationPolicy
527
- Remove-ADFineGrainedPasswordPolicy Remove-ADFineGrainedPasswordPolicySubject
528
- Remove-ADGroup Remove-ADGroupMember Remove-ADObject Remove-ADOrganizationalUnit
529
- Remove-ADPrincipalGroupMembership Remove-ADReplicationSite
530
- Remove-ADReplicationSiteLink Remove-ADReplicationSiteLinkBridge
531
- Remove-ADReplicationSubnet Remove-ADResourceProperty
532
- Remove-ADResourcePropertyList Remove-ADResourcePropertyListMember
533
- Remove-ADServiceAccount Remove-ADUser Remove-AppvClientConnectionGroup
534
- Remove-AppvClientPackage Remove-AppvPublishingServer Remove-AppxPackage
535
- Remove-AppxProvisionedPackage Remove-AppxVolume Remove-BitsTransfer
536
- Remove-CertificateEnrollmentPolicyServer Remove-CertificateNotificationTask
537
- Remove-CimInstance Remove-CimSession Remove-CIPolicyRule Remove-Computer
538
- Remove-Event Remove-EventLog Remove-IISConfigAttribute
539
- Remove-IISConfigCollectionElement Remove-IISConfigElement Remove-IISSite
540
- Remove-IscsiServerTarget Remove-IscsiVirtualDisk
541
- Remove-IscsiVirtualDiskSnapshot Remove-IscsiVirtualDiskTargetMapping
542
- Remove-Item Remove-ItemProperty Remove-JobTrigger Remove-LocalGroup
543
- Remove-LocalGroupMember Remove-LocalUser Remove-NfsMappedIdentity
544
- Remove-NfsNetgroup Remove-PSBreakpoint Remove-PSDrive Remove-TypeData
545
- Remove-Variable Remove-WebApplication Remove-WebAppPool Remove-WebBinding
546
- Remove-WebConfigurationBackup Remove-WebConfigurationLocation
547
- Remove-WebConfigurationLock Remove-WebConfigurationProperty
548
- Remove-WebGlobalModule Remove-WebHandler Remove-WebManagedModule Remove-Website
549
- Remove-WebVirtualDirectory Remove-WindowsCapability Remove-WindowsDriver
550
- Remove-WindowsImage Remove-WindowsPackage Remove-WmiObject Remove-WSManInstance
551
- Rename-ADObject Rename-Computer Rename-Item Rename-ItemProperty
552
- Rename-LocalGroup Rename-LocalUser Rename-WebConfigurationLocation
553
- Repair-AppvClientConnectionGroup Repair-AppvClientPackage
554
- Repair-UevTemplateIndex Repair-WindowsImage Reset-ADServiceAccountPassword
555
- Reset-ComputerMachinePassword Reset-IISServerManager Resize-IscsiVirtualDisk
556
- Resolve-DnsName Resolve-Path Restart-Computer Restart-Service
557
- Restart-WebAppPool Restart-WebItem Restore-ADObject Restore-AuditPolicy
558
- Restore-Computer Restore-IscsiVirtualDisk Restore-SecurityPolicy
559
- Restore-UevBackup Restore-UevUserSetting Restore-WebConfiguration
560
- Resume-BitsTransfer Resume-Service Revoke-ADAuthenticationPolicySiloAccess
561
- Save-WindowsImage Search-ADAccount Select-Object Select-String
562
- Select-WebConfiguration Select-Xml Send-AppvClientReport
563
- Send-DtcDiagnosticTransaction Send-MailMessage Set-Acl
564
- Set-ADAccountAuthenticationPolicySilo Set-ADAccountControl
565
- Set-ADAccountExpiration Set-ADAccountPassword Set-ADAuthenticationPolicy
566
- Set-ADAuthenticationPolicySilo Set-ADCentralAccessPolicy
567
- Set-ADCentralAccessRule Set-ADClaimTransformLink Set-ADClaimTransformPolicy
568
- Set-ADClaimType Set-ADComputer Set-ADDefaultDomainPasswordPolicy Set-ADDomain
569
- Set-ADDomainMode Set-ADFineGrainedPasswordPolicy Set-ADForest Set-ADForestMode
570
- Set-ADGroup Set-ADObject Set-ADOrganizationalUnit Set-ADReplicationConnection
571
- Set-ADReplicationSite Set-ADReplicationSiteLink Set-ADReplicationSiteLinkBridge
572
- Set-ADReplicationSubnet Set-ADResourceProperty Set-ADResourcePropertyList
573
- Set-ADServiceAccount Set-ADUser Set-Alias Set-AppBackgroundTaskResourcePolicy
574
- Set-AppLockerPolicy Set-AppvClientConfiguration Set-AppvClientMode
575
- Set-AppvClientPackage Set-AppvPublishingServer Set-AppxDefaultVolume
576
- Set-AppXProvisionedDataFile Set-AuthenticodeSignature Set-BitsTransfer
577
- Set-BpaResult Set-CertificateAutoEnrollmentPolicy Set-CimInstance
578
- Set-CIPolicyIdInfo Set-CIPolicySetting Set-CIPolicyVersion Set-Clipboard
579
- Set-Content Set-Culture Set-Date Set-DscLocalConfigurationManager
580
- Set-ExecutionPolicy Set-HVCIOptions Set-IISCentralCertProvider
581
- Set-IISCentralCertProviderCredential Set-IISConfigAttributeValue
582
- Set-IscsiServerTarget Set-IscsiTargetServerSetting Set-IscsiVirtualDisk
583
- Set-IscsiVirtualDiskSnapshot Set-Item Set-ItemProperty Set-JobTrigger
584
- Set-KdsConfiguration Set-LocalGroup Set-LocalUser Set-Location
585
- Set-NfsMappedIdentity Set-NfsNetgroup Set-PSBreakpoint Set-RuleOption
586
- Set-ScheduledJob Set-ScheduledJobOption Set-SecureBootUEFI Set-Service
587
- Set-TimeZone Set-TpmOwnerAuth Set-TraceSource Set-UevConfiguration
588
- Set-UevTemplateProfile Set-Variable Set-WebBinding Set-WebCentralCertProvider
589
- Set-WebCentralCertProviderCredential Set-WebConfiguration
590
- Set-WebConfigurationProperty Set-WebGlobalModule Set-WebHandler
591
- Set-WebManagedModule Set-WheaMemoryPolicy
592
- Set-WinAcceptLanguageFromLanguageListOptOut
593
- Set-WinCultureFromLanguageListOptOut Set-WinDefaultInputMethodOverride
594
- Set-WindowsEdition Set-WindowsProductKey Set-WindowsSearchSetting
595
- Set-WinHomeLocation Set-WinLanguageBarOption Set-WinSystemLocale
596
- Set-WinUILanguageOverride Set-WinUserLanguageList Set-WmiInstance
597
- Set-WSManInstance Set-WSManQuickConfig Show-ADAuthenticationPolicyExpression
598
- Show-Command Show-ControlPanelItem Show-EventLog
599
- Show-WindowsDeveloperLicenseRegistration Sort-Object Split-Path
600
- Split-WindowsImage Start-BitsTransfer Start-DscConfiguration
601
- Start-DtcDiagnosticResourceManager Start-IISCommitDelay Start-IISSite
602
- Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript
603
- Start-WebAppPool Start-WebCommitDelay Start-WebItem Start-Website
604
- Stop-AppvClientConnectionGroup Stop-AppvClientPackage Stop-Computer
605
- Stop-DtcDiagnosticResourceManager Stop-IISCommitDelay Stop-IISSite
606
- Stop-IscsiVirtualDiskOperation Stop-Process Stop-Service Stop-Transcript
607
- Stop-WebAppPool Stop-WebCommitDelay Stop-WebItem Stop-Website
608
- Suspend-BitsTransfer Suspend-Service Switch-Certificate Sync-ADObject
609
- Sync-AppvPublishingServer Tee-Object Test-ADServiceAccount Test-AppLockerPolicy
610
- Test-Certificate Test-ComputerSecureChannel Test-Connection
611
- Test-DscConfiguration Test-FileCatalog Test-KdsRootKey Test-NfsMappedIdentity
612
- Test-Path Test-UevTemplate Test-WSMan Trace-Command Unblock-File Unblock-Tpm
613
- Undo-DtcDiagnosticTransaction Undo-Transaction Uninstall-ADServiceAccount
614
- Unlock-ADAccount Unprotect-CmsMessage Unpublish-AppvClientPackage
615
- Unregister-Event Unregister-ScheduledJob Unregister-UevTemplate
616
- Unregister-WindowsDeveloperLicense Update-FormatData Update-List
617
- Update-TypeData Update-UevTemplate Update-WIMBootEntry Use-Transaction
618
- Use-WindowsUnattend Wait-Debugger Wait-Event Wait-Process Write-Debug
619
- Write-Error Write-EventLog Write-Host Write-Information Write-Output
620
- Write-Progress Write-Verbose Write-Warning \% \? ac asnp cat cd chdir clc clear
621
- clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir
622
- dnsn ebp echo epal epcsv epsn erase etsn exsn fc fl foreach ft fw gal gbp gc
623
- gci gcm gcs gdr ghy gi gjb gl gm gmo gp gps gpv group gsn gsnp gsv gu gv gwmi h
624
- history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md
625
- measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd
626
- pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv
627
- rvpa rwmi sajb sal saps sasv sbp sc select set shcm si sl sleep sls sort sp
628
- spjb spps spsv start sujb sv swmi tee trcm type wget where wjb write
74
+ MULTILINE_KEYWORDS = %w(
75
+ synopsis description parameter example inputs outputs notes link
76
+ component role functionality forwardhelptargetname forwardhelpcategory
77
+ remotehelprunspace externalhelp
629
78
  ).join('|')
630
79
 
631
- # Override from Shell
632
- state :interp do
633
- rule %r/`$/, Str::Escape # line continuation
634
- rule %r/`./, Str::Escape
635
- rule %r/\$\(\(/, Keyword, :math
636
- rule %r/\$\(/, Str::Interpol, :paren_interp
637
- rule %r/\${#?/, Keyword, :curly
638
- rule %r/\$#?(\w+|.)/, Name::Variable
80
+ state :variable do
81
+ rule %r/#{AUTO_VARS}/, Name::Builtin::Pseudo
82
+ rule %r/(\$)(?:(\w+)(:))?(\w+|\{(?:[^`]|`.)+?\})/ do
83
+ groups Name::Variable, Name::Namespace, Punctuation, Name::Variable
84
+ end
85
+ rule %r/\$\w+/, Name::Variable
86
+ rule %r/\$\{(?:[^`]|`.)+?\}/, Name::Variable
87
+ end
88
+
89
+ state :multiline do
90
+ rule %r/\.(?:#{MULTILINE_KEYWORDS})/i, Comment::Special
91
+ rule %r/#>/, Comment::Multiline, :pop!
92
+ rule %r/[^#.]+?/m, Comment::Multiline
93
+ rule %r/[#.]+/, Comment::Multiline
94
+ end
95
+
96
+ state :interpol do
97
+ rule %r/\)/, Str::Interpol, :pop!
98
+ mixin :root
639
99
  end
640
100
 
641
- # Override from Shell
642
- state :double_quotes do
101
+ state :dq do
643
102
  # NB: "abc$" is literally the string abc$.
644
103
  # Here we prevent :interp from interpreting $" as a variable.
645
104
  rule %r/(?:\$#?)?"/, Str::Double, :pop!
646
- mixin :interp
105
+ rule %r/\$\(/, Str::Interpol, :interpol
106
+ rule %r/`$/, Str::Escape # line continuation
107
+ rule %r/`./, Str::Escape
647
108
  rule %r/[^"`$]+/, Str::Double
109
+ mixin :variable
110
+ end
111
+
112
+ state :sq do
113
+ rule %r/'/, Str::Single, :pop!
114
+ rule %r/[^']+/, Str::Single
115
+ end
116
+
117
+ state :heredoc do
118
+ rule %r/(?:\$#?)?"@/, Str::Heredoc, :pop!
119
+ rule %r/\$\(/, Str::Interpol, :interpol
120
+ rule %r/`$/, Str::Escape # line continuation
121
+ rule %r/`./, Str::Escape
122
+ rule %r/[^"`$]+?/m, Str::Heredoc
123
+ rule %r/"+/, Str::Heredoc
124
+ mixin :variable
648
125
  end
649
126
 
650
- # Override from Shell
651
- state :data do
652
- rule %r/\s+/, Text
653
- rule %r/\$?"/, Str::Double, :double_quotes
654
- rule %r/\$'/, Str::Single, :ansi_string
127
+ state :class do
128
+ rule %r/\{/, Punctuation, :pop!
129
+ rule %r/\s+/, Text::Whitespace
130
+ rule %r/\w+/, Name::Class
131
+ rule %r/[:,]/, Punctuation
132
+ end
133
+
134
+ state :hasht do
135
+ rule %r/\s+/, Text::Whitespace
136
+ rule %r/\}/, Punctuation, :pop!
137
+ rule %r/"/, Str::Double, :dq
138
+ rule %r/'/, Str::Single, :sq
139
+ rule %r/\w+/, Name::Other
140
+ rule %r/=/, Operator
141
+ rule %r/,/, Punctuation
142
+ mixin :variable
143
+ end
655
144
 
656
- rule %r/'/, Str::Single, :single_quotes
145
+ state :array do
146
+ rule %r/\s+/, Text::Whitespace
147
+ rule %r/\)/, Punctuation, :pop!
148
+ rule %r/"/, Str::Double, :dq
149
+ rule %r/'/, Str::Single, :sq
150
+ rule %r/,/, Punctuation
151
+ mixin :variable
152
+ end
657
153
 
658
- rule %r/\*/, Keyword
154
+ state :bracket do
155
+ rule %r/\]/, Punctuation, :pop!
156
+ rule %r/[A-Za-z]\w+\./, Name::Constant
157
+ rule %r/([A-Za-z]\w+)/ do |m|
158
+ if ATTRIBUTES.include? m[0]
159
+ token Name::Builtin::Pseudo
160
+ else
161
+ token Keyword::Type
162
+ end
163
+ end
164
+ mixin :root
165
+ end
659
166
 
660
- rule %r/;/, Text
661
- rule %r/[^=\*\s{}()$"'`<]+/, Text
662
- rule %r/\d+(?= |\Z)/, Num
663
- rule %r/</, Text
664
- mixin :interp
167
+ state :parameters do
168
+ rule %r/\s*?\n/, Text::Whitespace, :pop!
169
+ rule %r/[;(){}\]]/, Punctuation, :pop!
170
+ rule %r/[|=]/, Operator, :pop!
171
+ rule %r/[\/\\~\w][-.:\/\\~\w]*/, Name::Other
172
+ rule %r/\w[-\w]+/, Name::Other
173
+ mixin :root
665
174
  end
666
175
 
667
- prepend :basic do
668
- rule %r(<#[\s\S]*?#>)m, Comment::Multiline
669
- rule %r/#.*$/, Comment::Single
670
- rule %r/\b(#{OPERATORS})\s*\b/i, Operator
671
- rule %r/\b(#{ATTRIBUTES})\s*\b/i, Name::Attribute
672
- rule %r/\b(#{KEYWORDS})\s*\b/i, Keyword
673
- rule %r/\b(#{KEYWORDS_TYPE})\s*\b/i, Keyword::Type
674
- rule %r/\bcase\b/, Keyword, :case
675
- rule %r/\b(#{BUILTINS})\s*\b(?!\.)/i, Name::Builtin
176
+ state :root do
177
+ rule %r/\s+/, Text::Whitespace
178
+
179
+ rule %r/#requires\s-version \d(?:\.\d+)?/, Comment::Preproc
180
+ rule %r/#.*/, Comment
181
+ rule %r/<#/, Comment::Multiline, :multiline
182
+
183
+ rule %r/"/, Str::Double, :dq
184
+ rule %r/'/, Str::Single, :sq
185
+ rule %r/@"/, Str::Heredoc, :heredoc
186
+ rule %r/@'.*?'@/m, Str::Heredoc
187
+
188
+ rule %r/\d*\.\d+/, Num::Float
189
+ rule %r/\d+/, Num::Integer
190
+
191
+ rule %r/\.\.(?=\.?\d)/, Operator
192
+ rule %r/(?:#{OPERATORS})\b/i, Operator
193
+
194
+ rule %r/(class)(\s+)(\w+)/i do
195
+ groups Keyword::Reserved, Text::Whitespace, Name::Class
196
+ push :class
197
+ end
198
+ rule %r/(function)(\s+)(?:(\w+)(:))?(\w[-\w]+)/i do
199
+ groups Keyword::Reserved, Text::Whitespace, Name::Namespace, Punctuation, Name::Function
200
+ end
201
+ rule %r/(?:#{KEYWORDS})\b(?![-.])/i, Keyword::Reserved
202
+
203
+ rule %r/-{1,2}\w+/, Name::Tag
204
+
205
+ rule %r/([\/\\~\w][-.:\/\\~\w]*)(\n)?/ do |m|
206
+ groups Name::Function, Text::Whitespace
207
+ push :parameters unless m[2]
208
+ end
209
+
210
+ rule %r/(\.)?([-\w]+)(?:(\()|(\n))?/ do |m|
211
+ groups Operator, Name::Function, Punctuation, Text::Whitespace
212
+ push :parameters unless m[3]
213
+ end
214
+
215
+ rule %r/[-+*\/%=!.&|]/, Operator
216
+ rule %r/@\{/, Punctuation, :hasht
217
+ rule %r/@\(/, Punctuation, :array
218
+ rule %r/\[/, Punctuation, :bracket
219
+ rule %r/[{}(),:;]/, Punctuation
220
+
221
+ mixin :variable
676
222
  end
677
223
  end
678
224
  end