lib/rouge/lexers/ruby.rb in rouge-1.8.0 vs lib/rouge/lexers/ruby.rb in rouge-1.9.0

- old
+ new

@@ -7,11 +7,11 @@ desc "The Ruby programming language (ruby-lang.org)" tag 'ruby' aliases 'rb' filenames '*.rb', '*.ruby', '*.rbw', '*.rake', '*.gemspec', '*.podspec', 'Rakefile', 'Guardfile', 'Gemfile', 'Capfile', 'Podfile', - 'Vagrantfile', '*.ru', '*.prawn' + 'Vagrantfile', '*.ru', '*.prawn', 'Berksfile' mimetypes 'text/x-ruby', 'application/x-ruby' def self.analyze_text(text) return 1 if text.shebang? 'ruby' @@ -213,10 +213,10 @@ mixin :has_heredocs rule /[A-Z][a-zA-Z0-9_]*/, Name::Constant, :method_call rule /(\.|::)(\s*)([a-z_]\w*[!?]?|[*%&^`~+-\/\[<>=])/ do groups Punctuation, Text, Name::Function - push :expr_start + push :method_call end rule /[a-zA-Z_]\w*[?!]/, Name, :expr_start rule /[a-zA-Z_]\w*/, Name, :method_call rule /\*\*|<<?|>>?|>=|<=|<=>|=~|={3}|!~|&&?|\|\||\.{1,3}/,