summaryrefslogtreecommitdiffstats
path: root/runtime/autoload
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-09 20:12:45 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-09 20:12:45 +0000
commit1b5f03ec9c5551047d5de8d845541dd3201abe7c (patch)
tree10618372a4087823169258cef47673cc03a64205 /runtime/autoload
parentd41262ed06564cef98a3800e2928e6e0db91abbf (diff)
Update runtime files
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/dist/vimindent.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/autoload/dist/vimindent.vim b/runtime/autoload/dist/vimindent.vim
index 24e2c93964..898f22f65c 100644
--- a/runtime/autoload/dist/vimindent.vim
+++ b/runtime/autoload/dist/vimindent.vim
@@ -2,7 +2,7 @@ vim9script
# Language: Vim script
# Maintainer: github user lacygoill
-# Last Change: 2022 Oct 15
+# Last Change: 2023 Jan 03
# NOTE: Whenever you change the code, make sure the tests are still passing:
#
@@ -201,6 +201,7 @@ const ENDS_BLOCK: string = '^\s*\%('
.. '\|' .. 'endw\%[hile]'
.. '\|' .. 'endt\%[ry]'
.. '\|' .. 'enddef'
+ .. '\|' .. 'endclass'
.. '\|' .. 'endf\%[unction]'
.. '\|' .. 'aug\%[roup]\s\+[eE][nN][dD]'
.. '\|' .. CLOSING_BRACKET
@@ -212,6 +213,7 @@ patterns =<< trim END
en\%[dif]
el\%[se]
endfor\=
+ endclass
endw\%[hile]
endt\%[ry]
fina\|finally\=
@@ -251,6 +253,7 @@ patterns =<< trim END
el\%[se]
elseif\=
for
+ class
wh\%[ile]
try
cat\%[ch]
@@ -278,6 +281,8 @@ const START_MIDDLE_END: dict<list<string>> = {
endif: ['if', 'el\%[se]\|elseif\=', 'en\%[dif]'],
for: ['for', '', 'endfor\='],
endfor: ['for', '', 'endfor\='],
+ class: ['class', '', 'endclass'],
+ endclass: ['class', '', 'endclass'],
while: ['wh\%[ile]', '', 'endw\%[hile]'],
endwhile: ['wh\%[ile]', '', 'endw\%[hile]'],
try: ['try', 'cat\%[ch]\|fina\|finally\=', 'endt\%[ry]'],