Skip to content

Commit

Permalink
Merge pull request #807 from michaeltlombardi/add-jea-file-extensions…
Browse files Browse the repository at this point in the history
…-to-powershell

Add JEA file extensions to powershell
  • Loading branch information
gfx authored Oct 21, 2017
2 parents 0b89c32 + d3d4d4e commit 8935d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/powershell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Powershell < Shell
desc 'powershell'
tag 'powershell'
aliases 'posh'
filenames '*.ps1', '*.psm1', '*.psd1'
filenames '*.ps1', '*.psm1', '*.psd1', '*.psrc', '*.pssc'
mimetypes 'text/x-powershell'

ATTRIBUTES = %w(
Expand Down
3 changes: 3 additions & 0 deletions spec/lexers/powershell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
it 'guesses by filename' do
assert_guess :filename => 'foo.ps1'
assert_guess :filename => 'foo.psm1'
assert_guess :filename => 'foo.psd1'
assert_guess :filename => 'foo.psrc'
assert_guess :filename => 'foo.pssc'
end

end
Expand Down

0 comments on commit 8935d0b

Please sign in to comment.