summaryrefslogtreecommitdiffstats
path: root/runtime/indent/cdl.vim
diff options
context:
space:
mode:
authorViktor Szépe <viktor@szepe.net>2023-10-16 09:53:37 +0200
committerGitHub <noreply@github.com>2023-10-16 09:53:37 +0200
commitdbf749bd5aaef6ea2d28bce081349785d174d96a (patch)
treecdc1b3ee6da473b77d1bd035747852cf67431964 /runtime/indent/cdl.vim
parentf5a94d5165bb9e390797da50a1fa7a87df3fbee4 (diff)
runtime: Fix more typos (#13354)
* Fix more typos * Fix typos in ignored runtime/ directory Signed-off-by: Christian Brabandt <cb@256bit.org>
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()