Skip to content
Discussion options

You must be logged in to vote

It does not assume the comment symbol is the same, it uses as default # if none is known.

  • const kLangCommentChars: Record<string, string | string[]> = {
    r: "#",
    python: "#",
    julia: "#",
    scala: "//",
    matlab: "%",
    csharp: "//",
    fsharp: "//",
    c: ["/*", "*/"],
    css: ["/*", "*/"],
    sas: ["*", ";"],
    powershell: "#",
    bash: "#",
    sql: "--",
    mysql: "--",
    psql: "--",
    lua: "--",
    cpp: "//",
    cc: "//",
    stan: "#",
    octave: "#",
    fortran: "!",
    fortran95: "!",
    awk: "#",
    gawk: "#",
    stata: "*",
    java: "//",

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fsmunoz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants