tomoya ishida a09f764ce5 [ruby/irb] Always use local variables in current context to parse code (https://github.com/ruby/irb/pull/397)
* Use local_variables for colorize, code_block_open check, nesting_level and assignment_expression check

* Check if expression is an assignment BEFORE evaluating it. evaluate might define new localvars and change result of assignment_expression?

* Add local_variables dependent code test

* pend local variable dependent test on truffleruby

code_block_open is not working on truffleruby

* Always pass context to RubyLex#lex

* Rename local_variable_assign_code generator method name

* Add assignment expression truncate test

* Add Context#local_variables and make generate_local_variables_assign_code more simple

* Update lib/irb/input-method.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Add a comment why assignment expression check should be done before evaluate

https://github.com/ruby/irb/commit/c8b3877281

Co-authored-by: Stan Lo <stan001212@gmail.com>
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-10-18 05:44:07 +00:00
..
2021-12-18 08:38:58 +09:00
2021-12-09 19:48:22 +09:00
2022-01-12 21:16:01 +09:00
2022-10-07 12:12:09 +09:00
2022-09-22 22:28:38 +09:00
2022-09-06 10:41:20 +09:00
2022-10-13 16:24:53 +09:00
2022-09-05 14:37:12 +09:00
2022-09-22 17:29:55 +09:00
2021-12-24 23:20:30 +09:00
2022-04-01 00:18:36 +09:00
2021-12-20 12:44:31 +09:00
2022-09-01 16:36:16 +09:00
2022-08-09 12:05:19 +09:00
2022-08-19 10:02:24 +09:00
2022-07-14 16:26:47 +09:00
2022-04-22 11:59:54 +09:00