Skip to content

Commit a70fd8e

Browse files
committed
feat: add support for the OpenSCAD file type
1 parent 9e816c7 commit a70fd8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/42header/utils/header.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function M.comment_symbols()
2929

3030
if vim.tbl_contains({ "c", "cc", "cpp", "cxx", "tpp" }, vim.bo.filetype) then
3131
str = "/* %s */"
32+
elseif vim.bo.filetype == "openscad" then
33+
str = "// %s #"
3234
end
3335

3436
-- Checks the buffer has a valid commentstring.
@@ -141,3 +143,4 @@ function M.stdheader()
141143
end
142144

143145
return M
146+

0 commit comments

Comments
 (0)