Skip to content

Commit

Permalink
Merge pull request #14 from heaths/v4update
Browse files Browse the repository at this point in the history
Update language and file extension support
  • Loading branch information
heaths committed Jun 28, 2016
2 parents b84780c + 6e1aa82 commit 9b5d088
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions ftdetect/ps1.vim
Expand Up @@ -8,3 +8,4 @@
au BufNewFile,BufRead *.ps1 set ft=ps1
au BufNewFile,BufRead *.psd1 set ft=ps1
au BufNewFile,BufRead *.psm1 set ft=ps1
au BufNewFile,BufRead *.pssc set ft=ps1
1 change: 0 additions & 1 deletion ftdetect/ps1xml.vim
Expand Up @@ -6,4 +6,3 @@
" Vim Script Page: http://www.vim.org/scripts/script.php?script_id=1327

au BufNewFile,BufRead *.ps1xml set ft=ps1xml

9 changes: 9 additions & 0 deletions ftdetect/xml.vim
@@ -0,0 +1,9 @@
" Vim ftdetect plugin file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
" Version: 2.10
" Project Repository: https://github.com/PProvost/vim-ps1
" Vim Script Page: http://www.vim.org/scripts/script.php?script_id=1327

au BufNewFile,BufRead *.cdxml set ft=xml
au BufNewFile,BufRead *.psc1 set ft=xml
3 changes: 2 additions & 1 deletion syntax/ps1.vim
Expand Up @@ -40,7 +40,7 @@ syn match ps1Repeat /\<foreach\>/ nextgroup=ps1Block skipwhite
syn match ps1Keyword /\<while\>/ nextgroup=ps1Block skipwhite
syn match ps1Keyword /\<where\>/ nextgroup=ps1Block skipwhite

syn keyword ps1Exception begin process end exit
syn keyword ps1Exception begin process end exit inlinescript parallel sequence
syn keyword ps1Keyword try catch finally throw
syn keyword ps1Keyword return filter in trap param data dynamicparam
syn match ps1Keyword /&/
Expand All @@ -57,6 +57,7 @@ syn keyword ps1Keyword class define from using var
syn match ps1Cmdlet /\w\+-\w\+/
syn keyword ps1Keyword function nextgroup=ps1Function skipwhite
syn keyword ps1Keyword filter nextgroup=ps1Function skipwhite
syn keyword ps1Keyword workflow nextgroup=ps1Function skipwhite
syn match ps1Function /\w\+-*\w*/ contained

" Type declarations
Expand Down

0 comments on commit 9b5d088

Please sign in to comment.