mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-19 01:15:04 -05:00
15 lines
411 B
JavaScript
15 lines
411 B
JavaScript
import { SQLDialect, PostgreSQL } from '@codemirror/lang-sql';
|
|
|
|
const extraKeywords = 'unsafe';
|
|
const keywords = PostgreSQL.spec.keywords.replace(/\b\w\b/, '') + ' ' + extraKeywords;
|
|
|
|
const PgSQL = SQLDialect.define({
|
|
charSetCasts: true,
|
|
doubleDollarQuotedStrings: true,
|
|
operatorChars: '+-*/<>=~!@#%^&|`?',
|
|
specialVar: '',
|
|
keywords: keywords,
|
|
types: PostgreSQL.spec.types,
|
|
});
|
|
export default PgSQL;
|