Class CodeRay::Scanners::Ruby
In: lib/coderay/scanners/ruby.rb
Parent: Scanner

This scanner is really complex, since Ruby is a complex language!

It tries to highlight 100% of all common code, and 90% of strange codes.

It is optimized for HTML highlighting, and is not very useful for parsing or pretty printing.

For now, I think it‘s better than the scanners in VIM or Syntax, or any highlighter I was able to find, except Caleb‘s RubyLexer.

I hope it‘s also better than the rdoc/irb lexer.

Included Modules

Streamable

Constants

EncodingError = Class.new Exception

[Validate]