From 9748266de2da169ee91b769cbd227b9d75b03ee9 Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:17:23 -0700 Subject: [PATCH] add reindex to syntax highlight --- pgml-dashboard/src/utils/markdown.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 0533b8b6c..1511b7da5 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -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", @@ -276,6 +276,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter { "END", "BETWEEN", "SET", + "REINDEX", "INDEX", "USING", "GROUP BY", @@ -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#"PARTITION OF"#, r#"PARTITION BY"#, "CASCADE", @@ -346,6 +347,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter { "END", "BETWEEN", "SET", + "REINDEX", "INDEX", "USING", "GROUP BY",