Skip to content

add reindex to syntax highlight #1149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 8, 2023
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