Skip to content

Commit a2fff3f

Browse files
andis-sprinkisCatsDeservePets
authored andcommitted
runtime(lf): update syntax to support lf version r36
Adds the lf release 36 specific syntax highlighting changes. related: andis-sprinkis/lf-vim#22 by @CatsDeservePets closes: #17792 Co-authored-by: CatsDeservePets <[email protected]> Signed-off-by: Andis Spriņķis <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent ba3a5a7 commit a2fff3f

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

runtime/syntax/lf.vim

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
" Maintainer: Andis Sprinkis <[email protected]>
44
" Former Maintainer: Cameron Wright
55
" URL: https://github.com/andis-sprinkis/lf-vim
6-
" Last Change: 10 May 2025
6+
" Last Change: 16 July 2025
77
"
88
" The shell syntax highlighting is configurable. See $VIMRUNTIME/doc/syntax.txt
9-
" lf version: 34
9+
" lf version: 36
1010

1111
if exists("b:current_syntax") | finish | endif
1212

@@ -25,11 +25,12 @@ syn match lfString '".*"' contains=lfSpecial
2525
"}}}
2626

2727
"{{{ Keywords
28-
syn keyword lfKeyword set setlocal cmd map cmap skipwhite
28+
syn keyword lfKeyword set setlocal cmd map cmap nmap vmap skipwhite
2929
"}}}
3030

3131
"{{{ Options Keywords
3232
syn keyword lfOptions
33+
\ addcustominfo
3334
\ anchorfind
3435
\ autoquit
3536
\ borderfmt
@@ -118,7 +119,6 @@ syn keyword lfOptions
118119
\ infotimefmtnew
119120
\ infotimefmtold
120121
\ invert
121-
\ invert-below
122122
\ jump-next
123123
\ jump-prev
124124
\ load
@@ -130,12 +130,14 @@ syn keyword lfOptions
130130
\ mark-save
131131
\ middle
132132
\ mouse
133+
\ nmaps
133134
\ number
134135
\ numberfmt
135136
\ on-cd
136137
\ on-focus-gained
137138
\ on-focus-lost
138139
\ on-init
140+
\ on-load
139141
\ on-quit
140142
\ on-redraw
141143
\ on-select
@@ -195,9 +197,17 @@ syn keyword lfOptions
195197
\ top
196198
\ truncatechar
197199
\ truncatepct
200+
\ tty-write
198201
\ unselect
199202
\ up
200203
\ updir
204+
\ visual
205+
\ visual-accept
206+
\ visual-change
207+
\ visual-discard
208+
\ visual-unselect
209+
\ visualfmt
210+
\ vmaps
201211
\ waitmsg
202212
\ watch
203213
\ wrapscan

0 commit comments

Comments
 (0)