From 58b549d2147ba2d4a9f9b4a5394982818455b58c Mon Sep 17 00:00:00 2001 From: "David H. Bronke" Date: Fri, 10 Jun 2016 12:20:05 -0500 Subject: [PATCH] [sql mode] Added missing operator characters for `text/x-pgsql`. Closes #4064. --- mode/sql/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/sql/sql.js b/mode/sql/sql.js index 17a096c5fc..01ebd80ae1 100644 --- a/mode/sql/sql.js +++ b/mode/sql/sql.js @@ -366,7 +366,7 @@ CodeMirror.defineMode("sql", function(config, parserConfig) { // http://www.postgresql.org/docs/9.5/static/datatype.html 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"), atoms: set("false true null unknown"), - operatorChars: /^[*+\-%<>!=&|^]/, + operatorChars: /^[*+\-%<>!=&|^\/#@?~]/, dateSQL: set("date time timestamp"), support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast") });