Skip to content

Commit 4ea1fb3

Browse files
committed
Change "backtick" to "backslash"
What was I thinking?
1 parent 87b25c5 commit 4ea1fb3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

indent/ruby.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ let s:bracket_continuation_regex = '%\@<!\%([({[]\)\s*\%(#.*\)\=$'
109109
" Regex that defines dot continuations
110110
let s:dot_continuation_regex = '%\@<!\.\s*\%(#.*\)\=$'
111111

112-
" Regex that defines backtick continuations
113-
let s:backtick_continuation_regex = '%\@<!\\\s*$'
112+
" Regex that defines backslash continuations
113+
let s:backslash_continuation_regex = '%\@<!\\\s*$'
114114

115115
" Regex that defines end of bracket continuation followed by another continuation
116116
let s:bracket_switch_continuation_regex = '^\([^(]\+\zs).\+\)\+'.s:continuation_regex
@@ -200,9 +200,9 @@ function s:GetMSL(lnum)
200200
" Otherwise, terminate search as we have found our MSL already.
201201
let line = getline(lnum)
202202

203-
if !s:Match(msl, s:backtick_continuation_regex) &&
204-
\ s:Match(lnum, s:backtick_continuation_regex)
205-
" If the current line doesn't end in a backtick, but the previous one
203+
if !s:Match(msl, s:backslash_continuation_regex) &&
204+
\ s:Match(lnum, s:backslash_continuation_regex)
205+
" If the current line doesn't end in a backslash, but the previous one
206206
" does, look for that line's msl
207207
"
208208
" Example:

spec/indent/continuations_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def bar(
210210
EOF
211211
end
212212

213-
specify "backticks" do
213+
specify "backslashes" do
214214
# See https://github.com/vim-ruby/vim-ruby/issues/311 for details
215215
assert_correct_indenting <<-EOF
216216
def foo

0 commit comments

Comments
 (0)