lib/rouge/lexers/shell.rb in rouge-0.3.2 vs lib/rouge/lexers/shell.rb in rouge-0.3.3

- old
+ new

@@ -27,15 +27,17 @@ shopt source suspend test time times trap true type typeset ulimit umask unalias unset wait ).join('|') state :basic do - rule /#.*\n/, 'Comment' + rule /#.*$/, 'Comment' rule /\b(#{KEYWORDS})\s*\b/, 'Keyword' rule /\bcase\b/, 'Keyword', :case rule /\b(#{BUILTINS})\s*\b(?!\.)/, 'Name.Builtin' + + rule /^\S*[\$%>#] +/, 'Generic.Prompt' rule /(\b\w+)(=)/ do |m| group 'Name.Variable' group 'Operator' end