patch 9.1.0874: filetype: karel files are not detected
Problem: filetype: karel files are not detected
Solution: detect '*.kl' files as karel filetype,
include syntax and filetype plugin
(Kirill Morozov)
closes: #16075
Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9a65a8c270
commit
fdac54d7bb
16
runtime/ftplugin/karel.vim
Normal file
16
runtime/ftplugin/karel.vim
Normal file
@ -0,0 +1,16 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: KAREL
|
||||
" Last Change: 2024-11-18
|
||||
" Maintainer: Kirill Morozov <kirill@robotix.pro>
|
||||
" Credits: Patrick Meiser-Knosowski for the initial implementation.
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=:--
|
||||
setlocal commentstring=--\ %s
|
||||
setlocal suffixesadd+=.kl,.KL
|
||||
|
||||
let b:undo_ftplugin = "setlocal com< cms< sua<"
|
||||
Reference in New Issue
Block a user