vim-patch:841becd: runtime(lf): update syntax to support lf version r38 (#35852)

Adds the lf release 38 specific syntax highlighting changes.

From the PR andis-sprinkis/lf-vim#24 by @CatsDeservePets

closes: vim/vim#18342

841becdc2d

Co-authored-by: Andis Spriņķis <andis@sprinkis.com>
This commit is contained in:
zeertzjq
2025-09-21 08:07:01 +08:00
committed by GitHub
parent f91d416403
commit 6b7fc9d37f

View File

@@ -3,10 +3,10 @@
" Maintainer: Andis Sprinkis <andis@sprinkis.com> " Maintainer: Andis Sprinkis <andis@sprinkis.com>
" Former Maintainer: Cameron Wright " Former Maintainer: Cameron Wright
" URL: https://github.com/andis-sprinkis/lf-vim " URL: https://github.com/andis-sprinkis/lf-vim
" Last Change: 16 August 2025 " Last Change: 7 Sep 2025
" "
" The shell syntax highlighting is configurable. See $VIMRUNTIME/doc/syntax.txt " The shell syntax highlighting is configurable. See $VIMRUNTIME/doc/syntax.txt
" lf version: 37 " lf version: 38
if exists("b:current_syntax") | finish | endif if exists("b:current_syntax") | finish | endif
@@ -56,6 +56,7 @@ syn keyword lfOptions
\ cmd-history-next \ cmd-history-next
\ cmd-history-prev \ cmd-history-prev
\ cmd-home \ cmd-home
\ cmd-insert
\ cmd-interrupt \ cmd-interrupt
\ cmd-left \ cmd-left
\ cmd-lowercase-word \ cmd-lowercase-word
@@ -78,12 +79,10 @@ syn keyword lfOptions
\ cut \ cut
\ cutfmt \ cutfmt
\ delete \ delete
\ dircache
\ dircounts \ dircounts
\ dirfirst \ dirfirst
\ dironly \ dironly
\ dirpreviews \ dirpreviews
\ doc
\ down \ down
\ draw \ draw
\ drawbox \ drawbox
@@ -104,6 +103,7 @@ syn keyword lfOptions
\ glob-unselect \ glob-unselect
\ half-down \ half-down
\ half-up \ half-up
\ help
\ hidden \ hidden
\ hiddenfiles \ hiddenfiles
\ high \ high
@@ -121,12 +121,14 @@ syn keyword lfOptions
\ jump-next \ jump-next
\ jump-prev \ jump-prev
\ load \ load
\ locale
\ low \ low
\ maps \ maps
\ mark-load \ mark-load
\ mark-remove \ mark-remove
\ mark-save \ mark-save
\ menufmt
\ menuheaderfmt
\ menuselectfmt
\ middle \ middle
\ mouse \ mouse
\ nmaps \ nmaps
@@ -180,7 +182,7 @@ syn keyword lfOptions
\ shellflag \ shellflag
\ shellopts \ shellopts
\ showbinds \ showbinds
\ sixel \ sizeunits
\ smartcase \ smartcase
\ smartdia \ smartdia
\ sortby \ sortby