Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chillenberger merged 2 commits intomasterfromdan-add-reindex-to-syntax-highlight
Nov 8, 2023
Merged
Changes fromall 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 deletionspgml-dashboard/src/utils/markdown.rs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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 DownExpand 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

[8]ページ先頭

©2009-2025 Movatter.jp