🌐 AI搜索 & 代理 主页
Skip to content
Merged
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
6 changes: 4 additions & 2 deletions pgml-dashboard/src/utils/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
let code = match options.lang {
"postgresql" | "sql" | "postgresql-line-nums" => {
lazy_static! {
static ref SQL_KEYS: [&'static str; 68] = [
static ref SQL_KEYS: [&'static str; 69] = [
"PARTITION OF",
"PARTITION BY",
"CASCADE",
Expand Down Expand Up @@ -276,6 +276,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
"END",
"BETWEEN",
"SET",
"REINDEX",
"INDEX",
"USING",
"GROUP BY",
Expand All @@ -295,7 +296,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
"pgml.predict",
"pgml.transform",
];
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 68] = [
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 69] = [
r#"<span class="syntax-highlight">PARTITION OF</span>"#,
r#"<span class="syntax-highlight">PARTITION BY</span>"#,
"<span class=\"syntax-highlight\">CASCADE</span>",
Expand Down Expand Up @@ -346,6 +347,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
"<span class=\"syntax-highlight\">END</span>",
"<span class=\"syntax-highlight\">BETWEEN</span>",
"<span class=\"syntax-highlight\">SET</span>",
"<span class=\"syntax-highlight\">REINDEX</span>",
"<span class=\"syntax-highlight\">INDEX</span>",
"<span class=\"syntax-highlight\">USING</span>",
"<span class=\"syntax-highlight\">GROUP BY</span>",
Expand Down