aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent/cdl.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-16 16:36:25 +0800
committerGitHub <noreply@github.com>2023-10-16 16:36:25 +0800
commit3222f0ad0079ce4bd4e45886a00e4fe4685fb5dd (patch)
tree84dad2040bbd4ec91e4c53c9a191d4eeafe908be /runtime/indent/cdl.vim
parent0a3505eb9df8d57a9a0bcecf02bb3dda1c8edd29 (diff)
downloadrneovim-3222f0ad0079ce4bd4e45886a00e4fe4685fb5dd.tar.gz
rneovim-3222f0ad0079ce4bd4e45886a00e4fe4685fb5dd.tar.bz2
rneovim-3222f0ad0079ce4bd4e45886a00e4fe4685fb5dd.zip
vim-patch:dbf749bd5aae (#25665)
runtime: Fix more typos (vim/vim#13354) * Fix more typos * Fix typos in ignored runtime/ directory https://github.com/vim/vim/commit/dbf749bd5aaef6ea2d28bce081349785d174d96a Co-authored-by: Viktor Szépe <viktor@szepe.net>
Diffstat (limited to 'runtime/indent/cdl.vim')
-rw-r--r--runtime/indent/cdl.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/indent/cdl.vim b/runtime/indent/cdl.vim
index 2c0fc7988e..da675698cf 100644
--- a/runtime/indent/cdl.vim
+++ b/runtime/indent/cdl.vim
@@ -21,7 +21,7 @@ endif
" find out if an "...=..." expression is an assignment (or a conditional)
" it scans 'line' first, and then the previous lines
-fun! CdlAsignment(lnum, line)
+fun! CdlAssignment(lnum, line)
let f = -1
let lnum = a:lnum
let line = a:line
@@ -90,7 +90,7 @@ fun! CdlGetIndent(lnum)
end
end
- " remove members [a] of [b]:[c]... (inicio remainds valid)
+ " remove members [a] of [b]:[c]... (inicio remains valid)
let line = substitute(line, '\c\(\[[^]]*]\(\s*of\s*\|:\)*\)\+', ' ', 'g')
while 1
" search for the next interesting element
@@ -111,7 +111,7 @@ fun! CdlGetIndent(lnum)
else " c == '='
" if it is an assignment increase indent
if f == -1 " we don't know yet, find out
- let f = CdlAsignment(lnum, strpart(line, 0, inicio))
+ let f = CdlAssignment(lnum, strpart(line, 0, inicio))
end
if f == 1 " formula increase it
let ind = ind + shiftwidth()
@@ -125,7 +125,7 @@ fun! CdlGetIndent(lnum)
let ind = ind - shiftwidth()
elseif match(thisline, '^\s*=') >= 0
if f == -1 " we don't know yet if is an assignment, find out
- let f = CdlAsignment(lnum, "")
+ let f = CdlAssignment(lnum, "")
end
if f == 1 " formula increase it
let ind = ind + shiftwidth()