Skip to content

Commit

Permalink
Add arch linux PKGBUILD to shell lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Dec 4, 2014
1 parent 039335e commit 9de7227
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Shell < RegexLexer
tag 'shell'
aliases 'bash', 'zsh', 'ksh', 'sh'
filenames '*.sh', '*.bash', '*.zsh', '*.ksh',
'.bashrc', '.zshrc', '.kshrc', '.profile'
'.bashrc', '.zshrc', '.kshrc', '.profile', 'PKGBUILD'

mimetypes 'application/x-sh', 'application/x-shellscript'

Expand Down
1 change: 1 addition & 0 deletions spec/lexers/shell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
assert_guess :filename => 'foo.zsh'
assert_guess :filename => 'foo.ksh'
assert_guess :filename => 'foo.bash'
assert_guess :filename => 'PKGBUILD'
deny_guess :filename => 'foo'
end

Expand Down

0 comments on commit 9de7227

Please sign in to comment.