fork
This commit is contained in:
23
langs/ps/ps.txt
Normal file
23
langs/ps/ps.txt
Normal file
@ -0,0 +1,23 @@
|
||||
### POWERSHELL LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME PowerShell
|
||||
VERSION 1.8.2
|
||||
|
||||
COMMENT ((?<!`)#.*?$)|((?<!`)<#.*?(?<!`)#>)
|
||||
HERESTRING:STRING ((?<!`)(@\".*?^\s*\"@))|((?<!`)(@\'.*?^\s*\'@))
|
||||
STRING ((?<!`)".*?(?<!`)")|((?<!`)'.*?')
|
||||
|
||||
FUNCTIONS:RESERVED (\b(?alt:reserved.txt)\b)|((?-i)[A-Z]\w+-[A-Z]\w+(?i))
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
TYPE \b(?alt:type.txt)\b
|
||||
|
||||
ENTITY (?default)
|
||||
VARIABLE \$[A-Za-z_]\w*\b
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT -\w+\b
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
||||
|
||||
#// -\w+\b
|
226
langs/ps/reserved.txt
Normal file
226
langs/ps/reserved.txt
Normal file
@ -0,0 +1,226 @@
|
||||
Get-AuthenticodeSignature
|
||||
Set-AuthenticodeSignature
|
||||
ConvertFrom-SecureString
|
||||
ConvertTo-SecureString
|
||||
Get-ExecutionPolicy
|
||||
Remove-ItemProperty
|
||||
Rename-ItemProperty
|
||||
Set-ExecutionPolicy
|
||||
Clear-ItemProperty
|
||||
Get-PfxCertificate
|
||||
Copy-ItemProperty
|
||||
Invoke-Expression
|
||||
Move-ItemProperty
|
||||
Update-FormatData
|
||||
Get-ItemProperty
|
||||
New-ItemProperty
|
||||
Set-ItemProperty
|
||||
Start-Transcript
|
||||
Get-TraceSource
|
||||
Measure-Command
|
||||
Remove-PSSnapin
|
||||
Remove-Variable
|
||||
Restart-Service
|
||||
Set-TraceSource
|
||||
Stop-Transcript
|
||||
Suspend-Service
|
||||
Update-TypeData
|
||||
Clear-Variable
|
||||
Compare-Object
|
||||
ConvertTo-Html
|
||||
Export-Console
|
||||
ForEach-Object
|
||||
Get-Credential
|
||||
Get-PSProvider
|
||||
Invoke-History
|
||||
Measure-Object
|
||||
Remove-PSDrive
|
||||
Resume-Service
|
||||
Write-Progress
|
||||
Clear-Content
|
||||
Export-Clixml
|
||||
Format-Custom
|
||||
Get-ChildItem
|
||||
Get-UICulture
|
||||
Get-WmiObject
|
||||
Import-Clixml
|
||||
Push-Location
|
||||
Select-Object
|
||||
Select-String
|
||||
Start-Service
|
||||
Trace-Command
|
||||
Write-Verbose
|
||||
Write-Warning
|
||||
Add-PSSnapin
|
||||
Convert-Path
|
||||
Export-Alias
|
||||
Format-Table
|
||||
Get-EventLog
|
||||
Get-Location
|
||||
Get-PSSnapin
|
||||
Get-Variable
|
||||
Group-Object
|
||||
Import-Alias
|
||||
New-TimeSpan
|
||||
New-Variable
|
||||
Pop-Location
|
||||
Resolve-Path
|
||||
Set-Location
|
||||
Set-Variable
|
||||
Stop-Process
|
||||
Stop-Service
|
||||
Where-Object
|
||||
Write-Output
|
||||
Add-Content
|
||||
Add-History
|
||||
Format-List
|
||||
Format-Wide
|
||||
Get-Command
|
||||
Get-Content
|
||||
Get-Culture
|
||||
Get-History
|
||||
Get-Process
|
||||
Get-PSDrive
|
||||
Get-Service
|
||||
Invoke-Item
|
||||
New-PSDrive
|
||||
New-Service
|
||||
Out-Default
|
||||
Out-Printer
|
||||
Remove-Item
|
||||
Rename-Item
|
||||
Set-Content
|
||||
Set-PSDebug
|
||||
Set-Service
|
||||
Sort-Object
|
||||
Start-Sleep
|
||||
Write-Debug
|
||||
Write-Error
|
||||
Add-Member
|
||||
Clear-Item
|
||||
Export-Csv
|
||||
Get-Member
|
||||
Get-Unique
|
||||
Import-Csv
|
||||
New-Object
|
||||
Out-String
|
||||
Split-Path
|
||||
Tee-Object
|
||||
Write-Host
|
||||
Copy-Item
|
||||
Get-Alias
|
||||
Join-Path
|
||||
Move-Item
|
||||
New-Alias
|
||||
Read-Host
|
||||
Set-Alias
|
||||
Test-Path
|
||||
Get-Date
|
||||
Get-Help
|
||||
Get-Host
|
||||
Get-Item
|
||||
New-Item
|
||||
Out-File
|
||||
Out-Host
|
||||
Out-Null
|
||||
Set-Date
|
||||
Set-Item
|
||||
Get-Acl
|
||||
Set-Acl
|
||||
history
|
||||
select
|
||||
epcsv
|
||||
group
|
||||
ipcsv
|
||||
sleep
|
||||
write
|
||||
clear
|
||||
mount
|
||||
pushd
|
||||
rmdir
|
||||
chdir
|
||||
erase
|
||||
asnp
|
||||
cvpa
|
||||
diff
|
||||
epal
|
||||
gsnp
|
||||
gwmi
|
||||
ipal
|
||||
rsnp
|
||||
rvpa
|
||||
sasv
|
||||
sort
|
||||
spps
|
||||
spsv
|
||||
kill
|
||||
popd
|
||||
echo
|
||||
copy
|
||||
move
|
||||
type
|
||||
clc
|
||||
cli
|
||||
clp
|
||||
clv
|
||||
cpi
|
||||
cpp
|
||||
gal
|
||||
gci
|
||||
gcm
|
||||
gdr
|
||||
ghy
|
||||
gps
|
||||
gsv
|
||||
iex
|
||||
ihy
|
||||
nal
|
||||
ndr
|
||||
rdr
|
||||
rni
|
||||
rnp
|
||||
sal
|
||||
tee
|
||||
cat
|
||||
pwd
|
||||
cls
|
||||
del
|
||||
dir
|
||||
ren
|
||||
set
|
||||
ac
|
||||
fc
|
||||
fl
|
||||
ft
|
||||
fw
|
||||
gc
|
||||
gi
|
||||
gl
|
||||
gm
|
||||
gp
|
||||
gu
|
||||
gv
|
||||
ii
|
||||
mi
|
||||
mp
|
||||
ni
|
||||
nv
|
||||
oh
|
||||
ri
|
||||
rp
|
||||
rv
|
||||
sc
|
||||
si
|
||||
sl
|
||||
sp
|
||||
sv
|
||||
cd
|
||||
cp
|
||||
lp
|
||||
ls
|
||||
mv
|
||||
ps
|
||||
rm
|
||||
rd
|
||||
h
|
||||
r
|
19
langs/ps/statement.txt
Normal file
19
langs/ps/statement.txt
Normal file
@ -0,0 +1,19 @@
|
||||
continue
|
||||
function
|
||||
foreach
|
||||
switch
|
||||
filter
|
||||
elseif
|
||||
return
|
||||
break
|
||||
while
|
||||
until
|
||||
where
|
||||
param
|
||||
throw
|
||||
else
|
||||
trap
|
||||
for
|
||||
do
|
||||
if
|
||||
in
|
23
langs/ps/type.txt
Normal file
23
langs/ps/type.txt
Normal file
@ -0,0 +1,23 @@
|
||||
scriptblock
|
||||
wmisearcher
|
||||
hashtable
|
||||
psobject
|
||||
wmiclass
|
||||
decimal
|
||||
string
|
||||
double
|
||||
single
|
||||
switch
|
||||
object
|
||||
float
|
||||
regex
|
||||
array
|
||||
long
|
||||
char
|
||||
bool
|
||||
byte
|
||||
type
|
||||
int
|
||||
xml
|
||||
ref
|
||||
wmi
|
Reference in New Issue
Block a user