(Missing features for Powershell 2.0) |
No edit summary |
||
Line 1: | Line 1: | ||
+ | == Powershell 2.0 features not covered == |
||
Version 2.7 of the Powershell syntax file (ps1.vim) does not cater for block comments (<# ... #>) and doesn't recognise the new Powershell 2.0 exception handling keywords (try, catch, finally). there are probably other Powershell 2.0 changes that are not covered, but these are all I have noticed so far. |
Version 2.7 of the Powershell syntax file (ps1.vim) does not cater for block comments (<# ... #>) and doesn't recognise the new Powershell 2.0 exception handling keywords (try, catch, finally). there are probably other Powershell 2.0 changes that are not covered, but these are all I have noticed so far. |
||
Line 11: | Line 12: | ||
HiLink ps1Exception Exception |
HiLink ps1Exception Exception |
||
</pre> |
</pre> |
||
+ | dutchie [[Special:Contributions/202.81.18.30|202.81.18.30]] 08:29, September 17, 2010 (UTC) |
Revision as of 08:29, 17 September 2010
Powershell 2.0 features not covered
Version 2.7 of the Powershell syntax file (ps1.vim) does not cater for block comments (<# ... #>) and doesn't recognise the new Powershell 2.0 exception handling keywords (try, catch, finally). there are probably other Powershell 2.0 changes that are not covered, but these are all I have noticed so far.
I recommend adding the following to handle the comments:
syn region ps1Comment start=/<#/ end=/#>/ contains=ps1CommentTodo
Then removing trap and throw from line 35 and adding these two lines in the appropriate places (lines 36 and 100 respectively) to handle exception keywords
syn keyword ps1Exception trap throw try catch finally HiLink ps1Exception Exception
dutchie 202.81.18.30 08:29, September 17, 2010 (UTC)