@@ -302,18 +302,34 @@ mod tests {
302
302
let ( text, point) = point_from_cursor ( "Sys.getenv(@)" ) ;
303
303
assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
304
304
305
+ // Inside the parentheses, multiline
306
+ let ( text, point) = point_from_cursor ( "Sys.getenv(\n @\n )" ) ;
307
+ assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
308
+
305
309
// Named argument
306
310
let ( text, point) = point_from_cursor ( "Sys.getenv(x = @)" ) ;
307
311
assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
308
312
313
+ // Named argument, multiline
314
+ let ( text, point) = point_from_cursor ( "Sys.getenv(\n x = @\n )" ) ;
315
+ assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
316
+
309
317
// Typed some and then requested completions
310
318
let ( text, point) = point_from_cursor ( "Sys.getenv(ARK_@)" ) ;
311
319
assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
312
320
321
+ // Typed some and then requested completions, multiline
322
+ let ( text, point) = point_from_cursor ( "Sys.getenv(\n ARK_@\n )" ) ;
323
+ assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
324
+
313
325
// After a named argument
314
326
let ( text, point) = point_from_cursor ( "Sys.getenv(unset = '1', @)" ) ;
315
327
assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
316
328
329
+ // After a named argument, multiline
330
+ let ( text, point) = point_from_cursor ( "Sys.getenv(\n unset = '1',\n @\n )" ) ;
331
+ assert_has_ark_test_envvar_completion ( text. as_str ( ) , point) ;
332
+
317
333
// Should not have it here
318
334
let ( text, point) = point_from_cursor ( "Sys.getenv('foo', @)" ) ;
319
335
let document = Document :: new ( text. as_str ( ) , None ) ;
0 commit comments