rusty-todo-md 1.4.0

A multi-language TODO comment extractor for source code files.
Documentation
// ===============================
// 🗄 SQL Comment Parser
// ===============================

sql_file = { SOI ~ (comment | str_literal | any_non_comment)* ~ EOI }

// Line comments starting with --
line_comment = @{ "--" ~ (!NEWLINE ~ ANY)* }

// Block comments delimited by /* */
block_comment = @{ "/*" ~ (!"*/" ~ ANY)* ~ "*/" }

comment = { line_comment | block_comment }

str_literal = _{ "'" ~ (!("'" | "\\") ~ ANY | "\\" ~ ANY)* ~ "'" |
                "\"" ~ (!("\"" | "\\") ~ ANY | "\\" ~ ANY)* ~ "\"" }

any_non_comment = { !(comment | str_literal) ~ ANY }