Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ All changes included in 1.9:
- ([#13575](https://github.com/quarto-dev/quarto-cli/pull/13575)): Improve CPU architecture detection/reporting in macOS to allow quarto to run in virtualized environments such as OpenAI's `codex`.
- ([#13656](https://github.com/quarto-dev/quarto-cli/issues/13656)): Fix R code cells with empty `lang: ""` option producing invalid markdown class attributes.
- ([#13832](https://github.com/quarto-dev/quarto-cli/pull/13832)): Fix `license.text` metadata not being accessible when using an inline license (`license: "text"`), and populate it with the license name for CC licenses instead of empty string. (author: @mcanouil)
- ([#13856](https://github.com/quarto-dev/quarto-cli/issues/13856)): Add code annotation support for Typst and Observable.js code blocks.
94 changes: 48 additions & 46 deletions src/resources/filters/modules/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,63 +74,65 @@ local kCssPropertyProcessing = "css-property-processing"

-- for a given language, the comment character(s)
local kLangCommentChars = {
r = {"#"},
python = {"#"},
julia = {"#"},
scala = {"//"},
matlab = {"%"},
csharp = {"//"},
fsharp = {"//"},
c = {"/*", "*/"},
css = {"/*", "*/"},
sas = {"*", ";"},
powershell = {"#"},
apl = {"⍝"},
asy = {"//"},
awk = {"#"},
bash = {"#"},
sql = {"--"},
mysql = {"--"},
psql = {"--"},
lua = {"--"},
cpp = {"//"},
c = {"/*", "*/"},
cc = {"//"},
stan = {"#"},
octave = {"#"},
coffee = {"#"},
cpp = {"//"},
csharp = {"//"},
css = {"/*", "*/"},
d3 = {"//"},
dockerfile = {"#"},
dot = {"//"},
elm = {"#"},
fortran = {"!"},
fortran95 = {"!"},
awk = {"#"},
fsharp = {"//"},
gap = {"#"},
gawk = {"#"},
stata = {"*"},
java = {"//"},
go = {"//"},
groovy = {"//"},
sed = {"#"},
perl = {"#"},
ruby = {"#"},
tikz = {"%"},
haskell = {"--"},
html = {"<!--", "-->"},
java = {"//"},
javascript = {"//"},
js = {"//"},
d3 = {"//"},
json = {"//"},
julia = {"#"},
latex = {"%"},
lua = {"--"},
markdown = {"<!--", "-->"},
matlab = {"%"},
mermaid = {"%%"},
mysql = {"--"},
node = {"//"},
ocaml = {"(*", "*)"},
octave = {"#"},
ojs = {"//"},
perl = {"#"},
powershell = {"#"},
psql = {"--"},
python = {"#"},
r = {"#"},
ruby = {"#"},
rust = {"//"},
sas = {"*", ";"},
sass = {"//"},
scala = {"//"},
scss = {"//"},
coffee = {"#"},
go = {"//"},
asy = {"//"},
haskell = {"--"},
dot = {"//"},
mermaid = {"%%"},
apl = {"⍝"},
yaml = {"#"},
json = {"//"},
latex = {"%"},
sed = {"#"},
sql = {"--"},
stan = {"#"},
stata = {"*"},
swift = {"//"},
tikz = {"%"},
typescript = {"//"},
swift = { "//" },
javascript = { "//"},
elm = { "#" },
vhdl = { "--"},
html = { "<!--", "-->"},
markdown = {"<!--", "-->"},
gap = { "#" },
dockerfile = { "#" },
ocaml = { "(*", "*)"},
rust = { "// "}
typst = {"//"},
vhdl = {"--"},
yaml = {"#"}
}
local kDefaultCodeAnnotationComment = {"#"}

Expand Down
Loading
Loading