Skip to content

Commit

Permalink
Merge pull request #6065 from dodona-edu/enhance/postgresql-highlighting
Browse files Browse the repository at this point in the history
Add psql dialect in editor
  • Loading branch information
jorg-vr authored Jan 15, 2025
2 parents 034238c + 9fd3f18 commit ec0232f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/assets/javascripts/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ const additionalLanguages = [
return import("@replit/codemirror-lang-csharp").then(m => m.csharp());
}
}),
LanguageDescription.of({
name: "postgresql",
alias: ["psql"],
extensions: ["sql"],
load() {
return import("@codemirror/lang-sql").then(m => m.sql({ dialect: m.PostgreSQL }));
}
})
];


Expand Down

0 comments on commit ec0232f

Please sign in to comment.