From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Martyanoff Newsgroups: gmane.emacs.devel Subject: [PATCH] sql: add missing postgresql types Date: Sun, 16 Apr 2023 15:38:43 +0200 Message-ID: <20230416133843.74970-1-nicolas@n16f.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas Martyanoff To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 16 15:39:54 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po2bi-0007l5-0q for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Apr 2023 15:39:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po2aq-000098-TT; Sun, 16 Apr 2023 09:39:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po2ap-00008z-J5 for emacs-devel@gnu.org; Sun, 16 Apr 2023 09:38:59 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po2an-0003pc-EM for emacs-devel@gnu.org; Sun, 16 Apr 2023 09:38:59 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-2f62b1385e3so473882f8f.2 for ; Sun, 16 Apr 2023 06:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=n16f-net.20221208.gappssmtp.com; s=20221208; t=1681652335; x=1684244335; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jDAEJH7X785Qbn8nd3ivEmgQzbU0ZAElvFbf5wQWw6s=; b=bVVENRzcoGYkvRGFdVWMSGWUsro9c87CpjN1rZNy4vHNtfzVkHIiHlIzZiq5sHl2Ia kv7dpbld4K7A8XhGfS4GVRcE+y+VQymKlgKpBD1LJN8c4ePrUUqHL+0TV78u9eheqIRg gSH2Fb+b8L5pZLt9hg7ExyEP3YpRs/G/u/x4J6eRPLnrKcCgGAiGaf1E3rzyvSp2r671 /wjKZp4Kp7hYA6gRpIHdiyoTe5/DKq/1f98atT49AnZvYvuGtj+nK1Kh0UAkBs25kj94 NyCswRrlPxS6HBcGJTWzZzsbJB5yRxqOah87u1M1D0tmsIou9DzAwR3QN1Xig0KVxz5K cKHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681652335; x=1684244335; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jDAEJH7X785Qbn8nd3ivEmgQzbU0ZAElvFbf5wQWw6s=; b=llVFivzTwgJlgh9WgzQATkCyAqwlDdq0MxQRxItr6gjDUhxeYDC44Kcs7uMEF023Do +6q/faAVbK5/Y1h7vmjI+NhvMh+LMbnksNzlo2upW7ntORXp7mB83GTCxwKRCc2mG9FU 3Tvqc6UZSJFwMbIerZidbqu+5c53oQhbvV4X98dAE0IOD/lce6S7hiw+CBHDtsbSDtdp gTF8d32lAZEaupIe04ugheNTM9hJ5H2bTFULZuX1QDHKMjyBvjZl6T0CUFj1lgM86RWJ z3oDaRpT2V3JFF/7dPfiFSr4aO98fcqJmkC5wRi4oXUAqqYN6hfOYAlHoZGWgNtpnO3c 6A1A== X-Gm-Message-State: AAQBX9fo5u/J8snycgENluJUFaBvgx9AaImeW5aCXvo/ZNfa5eCl13Jv +agnvt/nJxNSTCQgmg1OJJ3NSZMSoC1aCznTblLMWA== X-Google-Smtp-Source: AKy350YdCeGX7mWEIIk7+WjJw7GnA52xlH/JJM/OlUtXcCBI+j2HYdrH3kO7RbB0reldo31dDnSPSg== X-Received: by 2002:adf:f310:0:b0:2f7:6d72:561f with SMTP id i16-20020adff310000000b002f76d72561fmr3299207wro.48.1681652334768; Sun, 16 Apr 2023 06:38:54 -0700 (PDT) Original-Received: from localhost (2a01cb04000943008cd04fe2c793033e.ipv6.abo.wanadoo.fr. [2a01:cb04:9:4300:8cd0:4fe2:c793:33e]) by smtp.gmail.com with ESMTPSA id d16-20020a5d6dd0000000b002d6f285c0a2sm8109858wrz.42.2023.04.16.06.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Apr 2023 06:38:54 -0700 (PDT) X-Mailer: git-send-email 2.39.2 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=nicolas@n16f.net; helo=mail-wr1-x42b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305341 Archived-At: * 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