runtime(openscad): add a filetype plugin

Commit: 
https://github.com/vim/vim/commit/93f6454724ba62035f7292e4ec62f1bc96a7dc46
Author: Squibid <m...@zacharyscheiman.com>
Date:   Thu Aug 7 15:42:54 2025 +0200

    runtime(openscad): add a filetype plugin
    
    closes: https://github.com/vim/vim/issues/17902
    
    Signed-off-by: Squibid <m...@zacharyscheiman.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 8777ad93c..26cc51af0 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -243,6 +243,7 @@ runtime/ftplugin/nu.vim                                     
@mrcjkb
 runtime/ftplugin/octave.vim                            @dkearns
 runtime/ftplugin/ondir.vim                             @jparise
 runtime/ftplugin/opencl.vim                            @Freed-Wu
+runtime/ftplugin/openscad.vim                           @squibid
 runtime/ftplugin/openvpn.vim                           @ObserverOfTime
 runtime/ftplugin/pascal.vim                            @dkearns
 runtime/ftplugin/pbtxt.vim                             @lakshayg
diff --git a/runtime/ftplugin/openscad.vim b/runtime/ftplugin/openscad.vim
new file mode 100644
index 000000000..1f07b2168
--- /dev/null
+++ b/runtime/ftplugin/openscad.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin file
+" Language:    OpenSCAD (https://openscad.org)
+" Maintainer:  Zachary Scheiman <m...@zacharyscheiman.com>
+" Last Change: 2025 Aug 3
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+" Comments in openscad follow C/C++ syntax
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl commentstring<'

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1uk0vb-000VtD-CF%40256bit.org.

Raspunde prin e-mail lui