mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:6b7637e: runtime(lf): use syn iskeyword in syntax script
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
6b7637e6bb
Co-authored-by: Andis Spriņķis <andis@sprinkis.com>
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
This commit is contained in:

committed by
Christian Clason

parent
1c96b72dfa
commit
44a6e5ea99
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Andis Sprinkis <andis@sprinkis.com>
|
||||
" 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
|
||||
|
Reference in New Issue
Block a user