Skip to content

Commit 37a888f

Browse files
add reindex to syntax highlight (#1149)
1 parent 68aff5e commit 37a888f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pgml-dashboard/src/utils/markdown.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
225225
let code = match options.lang {
226226
"postgresql" | "sql" | "postgresql-line-nums" => {
227227
lazy_static! {
228-
static ref SQL_KEYS: [&'static str; 68] = [
228+
static ref SQL_KEYS: [&'static str; 69] = [
229229
"PARTITION OF",
230230
"PARTITION BY",
231231
"CASCADE",
@@ -276,6 +276,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
276276
"END",
277277
"BETWEEN",
278278
"SET",
279+
"REINDEX",
279280
"INDEX",
280281
"USING",
281282
"GROUP BY",
@@ -295,7 +296,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
295296
"pgml.predict",
296297
"pgml.transform",
297298
];
298-
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 68] = [
299+
static ref SQL_KEYS_REPLACEMENTS: [&'static str; 69] = [
299300
r#"<span class="syntax-highlight">PARTITION OF</span>"#,
300301
r#"<span class="syntax-highlight">PARTITION BY</span>"#,
301302
"<span class=\"syntax-highlight\">CASCADE</span>",
@@ -346,6 +347,7 @@ impl SyntaxHighlighterAdapter for SyntaxHighlighter {
346347
"<span class=\"syntax-highlight\">END</span>",
347348
"<span class=\"syntax-highlight\">BETWEEN</span>",
348349
"<span class=\"syntax-highlight\">SET</span>",
350+
"<span class=\"syntax-highlight\">REINDEX</span>",
349351
"<span class=\"syntax-highlight\">INDEX</span>",
350352
"<span class=\"syntax-highlight\">USING</span>",
351353
"<span class=\"syntax-highlight\">GROUP BY</span>",

0 commit comments

Comments
 (0)