Skip to content

Commit 57518b8

Browse files
committed
Merge branch 'main' into reverse-action
* main: Fix issues with ruby strings, fix docs
2 parents fb07fdb + a5f08e4 commit 57518b8

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

doc/switch.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,14 +498,17 @@ RSpec be_truthy/be_falsey (g:switch_builtins.rspec_be_truthy_falsey):
498498
expect(true).to be_truthy
499499
expect(true).to be_falsey
500500
<
501-
Ruby string style (g:switch_builtins.ruby_string):
501+
Ruby keyword string style (no spaces) (g:switch_builtins.ruby_keyword_string):
502502
>
503503
foo = 'bar'
504504
foo = "baz"
505505
foo = :baz
506506
<
507-
Note that it only works for single-word strings.
508-
507+
Ruby string style (g:switch_builtins.ruby_keyword_string):
508+
>
509+
foo = 'foo bar'
510+
foo = "foo bar"
511+
<
509512
Ruby block shorthands (g:switch_builtins.ruby_short_blocks):
510513
>
511514
do_something { |x| x.some_work! }
@@ -707,7 +710,7 @@ Git Rebase Commands:
707710
708711
Elixir ~
709712

710-
Charlist -> Binary -> Atom (g:switch_builtins.ruby_string)
713+
Charlist -> Binary -> Atom (g:switch_builtins.ruby_keyword_string)
711714
>
712715
foo = 'bar'
713716
foo = "bar"

ftplugin/elixir/switch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ endif
44

55
let b:switch_definitions =
66
\ [
7-
\ g:switch_builtins.ruby_string,
7+
\ g:switch_builtins.ruby_keyword_string,
88
\ g:switch_builtins.elixir_list_shorthand
99
\ ]

ftplugin/eruby/switch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ let b:switch_definitions =
88
\ g:switch_builtins.eruby_tag_type,
99
\ g:switch_builtins.ruby_hash_style,
1010
\ g:switch_builtins.ruby_oneline_hash,
11-
\ g:switch_builtins.ruby_string,
11+
\ g:switch_builtins.ruby_keyword_string,
1212
\ ]

0 commit comments

Comments
 (0)