Skip to content

Commit 58b549d

Browse files
whitelynxmarijnh
authored andcommitted
[sql mode] Added missing operator characters for text/x-pgsql.
Closes codemirror#4064.
1 parent 14307f6 commit 58b549d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/sql/sql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
366366
// http://www.postgresql.org/docs/9.5/static/datatype.html
367367
builtin: set("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
368368
atoms: set("false true null unknown"),
369-
operatorChars: /^[*+\-%<>!=&|^]/,
369+
operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
370370
dateSQL: set("date time timestamp"),
371371
support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")
372372
});

0 commit comments

Comments
 (0)