runtime(kivy): update kivy syntax, include ftplugin Commit: https://github.com/vim/vim/commit/8906e22df5223e012092eaee491a00534ba9f4b5 Author: Riley Bruins <ribr...@hotmail.com> Date: Sun Jul 7 20:53:04 2024 +0200
runtime(kivy): update kivy syntax, include ftplugin Kivy uses "#:" for preprocessing commands (like "#:import ...") which were overridden by the comment syntax. This has been changed, and a commentstring has been added. closes: #15163 Signed-off-by: Riley Bruins <ribr...@hotmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS index 2b4c475ff..320090524 100644 --- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -180,6 +180,7 @@ runtime/ftplugin/julia.vim @carlobaldassi runtime/ftplugin/jq.vim @vito-c runtime/ftplugin/kconfig.vim @chrisbra runtime/ftplugin/kdl.vim @imsnif @jiangyinzuo +runtime/ftplugin/kivy.vim @ribru17 runtime/ftplugin/kotlin.vim @udalov runtime/ftplugin/less.vim @genoma runtime/ftplugin/liquid.vim @tpope diff --git a/runtime/ftplugin/kivy.vim b/runtime/ftplugin/kivy.vim new file mode 100644 index 000000000..e19d832bf --- /dev/null +++ b/runtime/ftplugin/kivy.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin +" Language: Kivy +" Maintainer: Riley Bruins <ribr...@gmail.com> +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setl commentstring=#\ %s + +let b:undo_ftplugin = 'setl cms<' diff --git a/runtime/syntax/kivy.vim b/runtime/syntax/kivy.vim index b14550347..76e3576e7 100644 --- a/runtime/syntax/kivy.vim +++ b/runtime/syntax/kivy.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Kivy " Maintainer: Corey Prophitt <prophitt.co...@gmail.com> -" Last Change: May 29th, 2014 +" Last Change: Jul 6th, 2024 " Version: 1 " URL: http://kivy.org/ @@ -17,7 +17,7 @@ syn include @pyth $VIMRUNTIME/syntax/python.vim " Define Kivy syntax syn match kivyPreProc /#:.*/ -syn match kivyComment /#.*/ +syn match kivyComment /#[^:].*/ syn match kivyRule /<\I\i*\(,\s*\I\i*\)*>:/ syn match kivyAttribute /\<\I\i*\>/ nextgroup=kivyValue -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sQX7O-009BJ3-Ba%40256bit.org.