Skip to content

Commit 5ae5eb9

Browse files
authored
syntax highliting (#977)
1 parent a3ebb23 commit 5ae5eb9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pgml-dashboard/src/utils/markdown.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
220220
let code = match options.lang {
221221
"postgresql" | "sql" | "postgresql-line-nums" => {
222222
lazy_static! {
223-
static ref SQL_KEYS: [&'static str; 61] = [
223+
static ref SQL_KEYS: [&'static str; 66] = [
224224
"CASCADE",
225225
"INNER ",
226226
"ON ",
@@ -288,7 +288,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
288288
"pgml.predict",
289289
"pgml.transform",
290290
];
291-
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 61] = [
291+
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 66] = [
292292
"<span class=\"syntax-highlight\">CASCADE</span>",
293293
"<span class=\"syntax-highlight\">INNER </span>",
294294
"<span class=\"syntax-highlight\">ON </span>",
@@ -346,6 +346,11 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
346346
"<strong>pgml.norm_l2</strong>",
347347
"<span class=\"syntax-highlight\">CONCURRENTLY</span>",
348348
"<span class=\"syntax-highlight\">ON</span>\n",
349+
"<span class=\"syntax-highlight\">VALUES</span>",
350+
"<span class=\"syntax-highlight\">@@</span>",
351+
"<span class=\"syntax-highlight\">=></span>",
352+
"<span class=\"syntax-highlight\">GENERATED ALWAYS AS</span>",
353+
"<span class=\"syntax-highlight\">STORED</span>",
349354
"<span class=\"syntax-highlight\">IF NOT EXISTS</span>",
350355
"<strong>pgml.train</strong>",
351356
"<strong>pgml.predict</strong>",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy