all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Martyanoff <nicolas@n16f.net>
To: emacs-devel@gnu.org
Cc: Nicolas Martyanoff <nicolas@n16f.net>
Subject: [PATCH] sql: add missing postgresql types
Date: Sun, 16 Apr 2023 15:38:43 +0200	[thread overview]
Message-ID: <20230416133843.74970-1-nicolas@n16f.net> (raw)

* lisp/progmodes/sql.el: Add multiple missing PostgreSQL types: bigserial,
smallserial, macaddr8, jsonb, jsonpath, built-in range types, object
identifier types (oid & co).
---
 lisp/progmodes/sql.el | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index d8bd6bc2685..75d0cbbb367 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -2192,14 +2192,17 @@ sql-mode-postgres-font-lock-keywords
 
      ;; Postgres Data Types
      (sql-font-lock-keywords-builder 'font-lock-type-face nil
-"bigint" "bigserial" "bit" "bool" "boolean" "box" "bytea" "char"
-"character" "cidr" "circle" "date" "decimal" "double" "float4"
-"float8" "inet" "int" "int2" "int4" "int8" "integer" "interval" "line"
-"lseg" "macaddr" "money" "name" "numeric" "path" "point" "polygon"
-"precision" "real" "serial" "serial4" "serial8" "sequences" "smallint" "text"
-"time" "timestamp" "timestamptz" "timetz" "tsquery" "tsvector"
-"txid_snapshot" "unknown" "uuid" "varbit" "varchar" "varying" "without"
-"xml" "zone"
+ "bigint" "bigserial" "bigserial" "bit" "bool" "boolean" "box" "bytea" "char"
+"character" "cidr" "circle" "date" "daterange" "decimal" "double" "float4"
+"float8" "inet" "int" "int2" "int4" "int4range" "int8" "int8range" "integer"
+"interval" "jsonb" "jsonpath" "line" "lseg" "macaddr" "macaddr8" "money"
+"name" "numeric" "numrange" "oid" "path" "point" "polygon" "precision" "real"
+"regclass" "regcollation" "regconfig" "regdictionary" "regnamespace "
+"regoper" "regoperator" "regproc" "regprocedure" "regrole" "regtype"
+"sequences" "serial" "serial4" "serial8" "smallint" "smallserial" "text"
+"time" "timestamp" "timestamptz" "timetz" "tsquery" "tsrange" "tstzrange"
+"tsvector" "txid_snapshot" "unknown" "uuid" "varbit" "varchar" "varying"
+"without" "xml" "zone"
 )))
 
   "Postgres SQL keywords used by font-lock.
-- 
2.39.2




             reply	other threads:[~2023-04-16 13:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-16 13:38 Nicolas Martyanoff [this message]
2023-04-16 13:41 ` [PATCH] sql: add missing postgresql types Nicolas Martyanoff
2023-04-17  9:12 ` Robert Pluim
2023-04-17 10:18   ` Nicolas Martyanoff
2023-04-20  7:52     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230416133843.74970-1-nicolas@n16f.net \
    --to=nicolas@n16f.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.