class
RDoc::RubyLex
v1_9_1_378 -
Show latest stable
- Superclass: Object
Lexical analyzer for Ruby source
Included modules
- IRB
- RDoc::RubyToken
Constants
DEINDENT_CLAUSE = ["end" #, "when"\n]
DLtype2Token = {\n"\\"" => TkDSTRING,\n"\\`" => TkDXSTRING,\n"/" => TkDREGEXP,\n}
ENINDENT_CLAUSE = [\n"case", "class", "def", "do", "for", "if",\n"module", "unless", "until", "while", "begin" #, "when"\n]
Ltype2Token = {\n"\\'" => TkSTRING,\n"\\"" => TkSTRING,\n"\\`" => TkXSTRING,\n"/" => TkREGEXP,\n"]" => TkDSTRING\n}
PERCENT_LTYPE = {\n"q" => "\\'",\n"Q" => "\\"",\n"x" => "\\`",\n"r" => "/",\n"w" => "]"\n}
PERCENT_PAREN = {\n"{" => "}",\n"[" => "]",\n"<" => ">",\n"(" => ")"\n}
Attributes
| [R] | continue |
| [RW] | exception_on_syntax_error |
| [R] | indent |
| [R] | lex_state |
| [RW] | read_auto_clean_up |
| [RW] | skip_space |
Files
- lib/rdoc/parser/ruby.rb