From 6b7637e6bb3c231b8198e3eb9a3f7f558eb67188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andis=20Spri=C5=86=C4=B7is?= Date: Sat, 10 May 2025 14:42:25 +0200 Subject: [PATCH] runtime(lf): use syn iskeyword in syntax script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets 'syn iskeyword' in syntax/lf.vim to fix the missing lf keyword highlighting in lines like 'map e :open; open' (first 'open' not highlighted). applies PR andis-sprinkis/lf-vim#21 by @joelim-work closes: andis-sprinkis/lf-vim#14 Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com> Signed-off-by: Andis Spriņķis Signed-off-by: Christian Brabandt --- runtime/syntax/lf.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/syntax/lf.vim b/runtime/syntax/lf.vim index 2fe2859ec7..0e877eb77d 100644 --- a/runtime/syntax/lf.vim +++ b/runtime/syntax/lf.vim @@ -3,7 +3,7 @@ " Maintainer: Andis Sprinkis " Former Maintainer: Cameron Wright " URL: https://github.com/andis-sprinkis/lf-vim -" Last Change: 5 Apr 2025 +" Last Change: 10 May 2025 " " The shell syntax highlighting is configurable. See $VIMRUNTIME/doc/syntax.txt " lf version: 34 @@ -215,6 +215,7 @@ let s:shell_syntax = get(b:, 'lf_shell_syntax', s:shell_syntax) unlet b:current_syntax exe 'syn include @Shell '.s:shell_syntax +syn iskeyword @,- let b:current_syntax = "lf" syn region lfCommand matchgroup=lfCommandMarker start=' \zs:\ze' end='$' keepend transparent