зеркало из https://github.com/github/ruby.git
* lib/irb/ruby-lex.rb, lib/irb/ruby-token.rb: support %s-notation for irb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fb4d3c4df6
Коммит
5f7be2983b
|
@ -301,7 +301,8 @@ class RubyLex
|
|||
"x" => "\`",
|
||||
"r" => "\/",
|
||||
"w" => "]",
|
||||
"W" => "]"
|
||||
"W" => "]",
|
||||
"s" => ":"
|
||||
}
|
||||
|
||||
PERCENT_PAREN = {
|
||||
|
@ -316,7 +317,8 @@ class RubyLex
|
|||
"\"" => TkSTRING,
|
||||
"\`" => TkXSTRING,
|
||||
"\/" => TkREGEXP,
|
||||
"]" => TkDSTRING
|
||||
"]" => TkDSTRING,
|
||||
":" => TkSYMBOL
|
||||
}
|
||||
DLtype2Token = {
|
||||
"\"" => TkDSTRING,
|
||||
|
|
|
@ -164,6 +164,7 @@ module RubyToken
|
|||
[:TkSTRING, TkVal],
|
||||
[:TkXSTRING, TkVal],
|
||||
[:TkREGEXP, TkVal],
|
||||
[:TkSYMBOL, TkVal],
|
||||
|
||||
[:TkDSTRING, TkNode],
|
||||
[:TkDXSTRING, TkNode],
|
||||
|
|
Загрузка…
Ссылка в новой задаче