aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-19 22:29:18 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-20 09:31:15 +0100
commitde9ed1ca5478481679df23f894b92b6756be7aed (patch)
tree26195a48d09fe13aa8feded19a3c112ad7951d85 /runtime/ftplugin
parentfd57f39766c9f26da739214288f90be74223c3cd (diff)
downloadrneovim-de9ed1ca5478481679df23f894b92b6756be7aed.tar.gz
rneovim-de9ed1ca5478481679df23f894b92b6756be7aed.tar.bz2
rneovim-de9ed1ca5478481679df23f894b92b6756be7aed.zip
vim-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: vim/vim#16075 https://github.com/vim/vim/commit/fdac54d7bbf6d68a8bf741e734b86d0f1998ac86 Co-authored-by: Kirill Morozov <kirill@robotix.pro> Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/karel.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/ftplugin/karel.vim b/runtime/ftplugin/karel.vim
new file mode 100644
index 0000000000..8ccc2b32ce
--- /dev/null
+++ b/runtime/ftplugin/karel.vim
@@ -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<"