File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module RubyLsp
23
23
"ensure" => "Executes the code in the ensure block regardless of whether an exception is raised or not" ,
24
24
"for" => "Iterates over a collection of elements" ,
25
25
"module" => "Defines a module" ,
26
- "next" => "Skips to the next iteration of a loop" ,
26
+ "next" => "Skips the rest of the current iteration and moves to the next iteration of a loop or block " ,
27
27
"yield" => "Invokes the passed block with the given arguments" ,
28
28
} . freeze #: Hash[String, String]
29
29
end
Original file line number Diff line number Diff line change @@ -979,6 +979,21 @@ def my_method
979
979
RUBY
980
980
position : { line : 0 , character : 2 } ,
981
981
} ,
982
+ "module" => {
983
+ source : <<~RUBY ,
984
+ module MyModule
985
+ end
986
+ RUBY
987
+ position : { line : 0 , character : 2 } ,
988
+ } ,
989
+ "next" => {
990
+ source : <<~RUBY ,
991
+ for i in 1..10
992
+ next
993
+ end
994
+ RUBY
995
+ position : { line : 1 , character : 2 } ,
996
+ } ,
982
997
}
983
998
984
999
test_cases . each do |keyword , config |
You can’t perform that action at this time.
0 commit comments