runtime(lf): update syntax to support lf version r39
Commit:
https://github.com/vim/vim/commit/cce452f52d6b52b1f1b630206ba3b54a12465152
Author: CatsDeservePets <
145048791+Ca...@users.noreply.github.com>
Date: Mon Dec 1 18:49:24 2025 +0000
runtime(lf): update syntax to support lf version r39
closes:
https://github.com/vim/vim/issues/18846
Signed-off-by: CatsDeservePets <
145048791+Ca...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index ff59e3d65..cdbf40a83 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -378,6 +378,7 @@ runtime/indent/kdl.vim @imsnif @jiangyinzuo
runtime/indent/kotlin.vim @udalov
runtime/indent/krl.vim @KnoP-01
runtime/indent/ld.vim @dkearns
+runtime/indent/lf.vim @andis-sprinkis
runtime/indent/less.vim @genoma
runtime/indent/liquid.vim @tpope
runtime/indent/lua.vim @marcuscf
diff --git a/runtime/indent/lf.vim b/runtime/indent/lf.vim
new file mode 100644
index 000000000..599759288
--- /dev/null
+++ b/runtime/indent/lf.vim
@@ -0,0 +1,10 @@
+" Vim indent file
+" Language: lf file manager configuration file (lfrc)
+" Maintainer: Andis Sprinkis <
an...@sprinkis.com>
+" URL:
https://github.com/andis-sprinkis/lf-vim
+" Last Change: 26 Oct 2025
+
+if exists("b:did_indent") | finish | endif
+
+" Correctly indent embedded shell commands.
+runtime! indent/sh.vim
diff --git a/runtime/syntax/lf.vim b/runtime/syntax/lf.vim
index 20219ecd2..0910bbd3b 100644
--- a/runtime/syntax/lf.vim
+++ b/runtime/syntax/lf.vim
@@ -3,10 +3,10 @@
" Maintainer: Andis Sprinkis <
an...@sprinkis.com>
" Former Maintainer: Cameron Wright
" URL:
https://github.com/andis-sprinkis/lf-vim
-" Last Change: 7 Sep 2025
+" Last Change: 26 Oct 2025
"
" The shell syntax highlighting is configurable. See $VIMRUNTIME/doc/syntax.txt
-" lf version: 38
+" lf version: 39
if exists("b:current_syntax") | finish | endif
@@ -63,6 +63,7 @@ syn keyword lfOptions
\ cmd-menu-accept
\ cmd-menu-complete
\ cmd-menu-complete-back
+ \ cmd-menu-discard
\ cmd-right
\ cmd-transpose
\ cmd-transpose-word
@@ -148,6 +149,7 @@ syn keyword lfOptions
\ paste
\ period
\ pre-cd
+ \ preload
\ preserve
\ preview
\ previewer
@@ -162,6 +164,7 @@ syn keyword lfOptions
\ rename
\ reverse
\ roundbox
+ \ rulerfile
\ rulerfmt
\ scroll-down
\ scroll-up