Content-Length: 2489 | pFad | http://github.com/postgresml/postgresml/pull/977.patch

thub.com From 02e790591a0bfbbf06044338c0757f110f3d21ec Mon Sep 17 00:00:00 2001 From: Montana Low Date: Sun, 3 Sep 2023 18:54:16 -0700 Subject: [PATCH] syntax highliting --- pgml-dashboard/src/utils/markdown.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index e090cfbfd..0957e5e39 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -220,7 +220,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter { let code = match options.lang { "postgresql" | "sql" | "postgresql-line-nums" => { lazy_static! { - static ref SQL_KEYS: [&'static str; 61] = [ + static ref SQL_KEYS: [&'static str; 66] = [ "CASCADE", "INNER ", "ON ", @@ -288,7 +288,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter { "pgml.predict", "pgml.transform", ]; - static ref SQL_KEYS_REPLACEMENTS: [&'static str; 61] = [ + static ref SQL_KEYS_REPLACEMENTS: [&'static str; 66] = [ "CASCADE", "INNER ", "ON ", @@ -346,6 +346,11 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter { "pgml.norm_l2", "CONCURRENTLY", "ON\n", + "VALUES", + "@@", + "=>", + "GENERATED ALWAYS AS", + "STORED", "IF NOT EXISTS", "pgml.train", "pgml.predict",








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/pull/977.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy