lib/rouge/lexers/shell.rb in rouge-0.2.6 vs lib/rouge/lexers/shell.rb in rouge-0.2.7
- old
+ new
@@ -3,10 +3,12 @@
class Shell < RegexLexer
desc "Various shell languages, including sh and bash"
tag 'shell'
aliases 'bash', 'zsh', 'ksh', 'sh'
- filenames '*.sh', '*.bash', '*.zsh', '*.ksh'
+ filenames '*.sh', '*.bash', '*.zsh', '*.ksh',
+ '.bashrc', '.zshrc', '.kshrc', '.profile'
+
mimetypes 'application/x-sh', 'application/x-shellscript'
def self.analyze_text(text)
text.shebang?(/(ba|z|k)?sh/) ? 1 : 0
end