Skip to content

Commit d06e936

Browse files
committed
Add support for swift and javascript
1 parent eb207d3 commit d06e936

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/filters/quarto-pre/code-annotation.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ local kLangCommentChars = {
4949
yaml = {"#"},
5050
json = {"//"},
5151
latex = {"%"},
52-
typescript = {"//"}
52+
typescript = {"//"},
53+
swift = { "//" },
54+
javascript = { "// "}
5355
}
5456

5557
local kCodeAnnotationsParam = 'code-annotations'

0 commit comments

Comments
 (0)