summaryrefslogtreecommitdiffstats
path: root/runtime/indent/php.vim
diff options
context:
space:
mode:
authorViktor Szépe <viktor@szepe.net>2023-08-23 21:20:00 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-23 21:20:00 +0200
commit3fc7a7e44abda6505ccd39a6d067db6e5173cbf6 (patch)
treefbccdd210699fd68bb39f86bcb6d037b57d66c1c /runtime/indent/php.vim
parentafe0466fb1695fa8b9782eea8a8e9f9540d4cb85 (diff)
runtime: Fix typos in various files
closes: #12836 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Viktor Szépe <viktor@szepe.net>
Diffstat (limited to 'runtime/indent/php.vim')
-rw-r--r--runtime/indent/php.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/indent/php.vim b/runtime/indent/php.vim
index 0e623689d5..6b3d700059 100644
--- a/runtime/indent/php.vim
+++ b/runtime/indent/php.vim
@@ -327,13 +327,13 @@ endfun
function! FindArrowIndent (lnum) " {{{
- let parrentArrowPos = -1
+ let parentArrowPos = -1
let cursorPos = -1
let lnum = a:lnum
while lnum > 1
let last_line = getline(lnum)
if last_line =~ '^\s*->'
- let parrentArrowPos = indent(a:lnum)
+ let parentArrowPos = indent(a:lnum)
break
else
@@ -355,28 +355,28 @@ function! FindArrowIndent (lnum) " {{{
else
endif
else
- let parrentArrowPos = -1
+ let parentArrowPos = -1
break
end
endif
if cleanedLnum =~ '->'
call cursor(lnum, cursorPos == -1 ? strwidth(cleanedLnum) : cursorPos)
- let parrentArrowPos = searchpos('->', 'cWb', lnum)[1] - 1
+ let parentArrowPos = searchpos('->', 'cWb', lnum)[1] - 1
break
else
- let parrentArrowPos = -1
+ let parentArrowPos = -1
break
endif
endif
endwhile
- if parrentArrowPos == -1
- let parrentArrowPos = indent(lnum) + shiftwidth()
+ if parentArrowPos == -1
+ let parentArrowPos = indent(lnum) + shiftwidth()
end
- return parrentArrowPos
+ return parentArrowPos
endfun "}}}
function! FindTheIfOfAnElse (lnum, StopAfterFirstPrevElse) " {{{