Skip to content

Commit f264072

Browse files
authored
enh(powershell) Add three VALID_VERBS and update the reference link (#2981) (#2982)
1 parent b1b0815 commit f264072

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,4 @@ Contributors:
313313
- Steven Van Impe <[email protected]>
314314
- Martin Dørum <[email protected]>
315315
- John Haugeland <[email protected]>
316+
- davidhcefx <[email protected]>

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Language grammar improvements:
1111
- enh(swift) Improved highlighting for operator and precedencegroup declarations. (#2938) [Steven Van Impe][]
1212
- fix(xml) Support single-character namespaces. (#2957) [Jan Pilzer][]
1313
- enh(ruby) Support for character literals (#2950) [Vaibhav Chanana][]
14+
- enh(powershell) Add three VALID_VERBS and update the reference link (#2981) [davidhcefx][]
1415

1516
Grammar changes:
1617

@@ -39,6 +40,7 @@ Deprecations:
3940
[Steven Van Impe]: https://github.com/svanimpe/
4041
[Josh Goebel]: https://github.com/joshgoebel
4142
[Vaibhav Chanana]: https://github.com/il3ven
43+
[davidhcefx]: https://github.com/davidhcefx
4244

4345

4446
## Version 10.5.0

src/languages/powershell.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ export default function(hljs) {
2424
"void"
2525
];
2626

27-
// https://msdn.microsoft.com/en-us/library/ms714428(v=vs.85).aspx
27+
// https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands
2828
const VALID_VERBS =
2929
'Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|' +
3030
'Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|' +
3131
'Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|' +
3232
'Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|' +
3333
'ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|' +
34-
'Limit|Merge|Out|Publish|Restore|Save|Sync|Unpublish|Update|' +
35-
'Approve|Assert|Complete|Confirm|Deny|Disable|Enable|Install|Invoke|Register|' +
36-
'Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|' +
34+
'Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|' +
35+
'Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|' +
36+
'Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|' +
3737
'Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|' +
3838
'Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|' +
3939
'Unprotect|Use|ForEach|Sort|Tee|Where';

0 commit comments

Comments
 (0)