summaryrefslogtreecommitdiff
path: root/mnv/runtime/ftplugin/openscad.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/ftplugin/openscad.mnv')
-rw-r--r--mnv/runtime/ftplugin/openscad.mnv14
1 files changed, 14 insertions, 0 deletions
diff --git a/mnv/runtime/ftplugin/openscad.mnv b/mnv/runtime/ftplugin/openscad.mnv
new file mode 100644
index 0000000000..ceeaf712ca
--- /dev/null
+++ b/mnv/runtime/ftplugin/openscad.mnv
@@ -0,0 +1,14 @@
+" MNV filetype plugin file
+" Language: OpenSCAD (https://openscad.org)
+" Maintainer: Zachary Scheiman <me@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<'