diff options
| author | Julien Danjou | 2012-12-14 16:31:19 +0100 |
|---|---|---|
| committer | Julien Danjou | 2012-12-14 16:31:19 +0100 |
| commit | 016b2a42cda75bdd42891edb6c6384928b29036e (patch) | |
| tree | e89b731b673a0374f00f7dd91ab7d067aa148dbd | |
| parent | 665e5e07a99173d6b310bb7234a3bd0d774d107d (diff) | |
| download | emacs-016b2a42cda75bdd42891edb6c6384928b29036e.tar.gz emacs-016b2a42cda75bdd42891edb6c6384928b29036e.zip | |
* progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update
keywords list, data type and PL/pgSQL.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/sql.el | 54 |
2 files changed, 35 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 61ccbead17d..75387673f76 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-14 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update | ||
| 4 | keywords list, data type and PL/pgSQL. | ||
| 5 | |||
| 1 | 2012-12-14 Dave Abrahams <dave@boostpro.com> | 6 | 2012-12-14 Dave Abrahams <dave@boostpro.com> |
| 2 | 7 | ||
| 3 | * vc/ediff-util.el (ediff-buffer-type): New function. | 8 | * vc/ediff-util.el (ediff-buffer-type): New function. |
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 22ba55d9a08..9765b614b96 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -1930,7 +1930,7 @@ to add functions and PL/SQL keywords.") | |||
| 1930 | ;; Postgres non-reserved words | 1930 | ;; Postgres non-reserved words |
| 1931 | (sql-font-lock-keywords-builder 'font-lock-builtin-face nil | 1931 | (sql-font-lock-keywords-builder 'font-lock-builtin-face nil |
| 1932 | "abort" "absolute" "access" "action" "add" "admin" "after" "aggregate" | 1932 | "abort" "absolute" "access" "action" "add" "admin" "after" "aggregate" |
| 1933 | "also" "alter" "always" "assertion" "assignment" "at" "backward" | 1933 | "also" "alter" "always" "assertion" "assignment" "at" "attribute" "backward" |
| 1934 | "before" "begin" "between" "by" "cache" "called" "cascade" "cascaded" | 1934 | "before" "begin" "between" "by" "cache" "called" "cascade" "cascaded" |
| 1935 | "catalog" "chain" "characteristics" "checkpoint" "class" "close" | 1935 | "catalog" "chain" "characteristics" "checkpoint" "class" "close" |
| 1936 | "cluster" "coalesce" "comment" "comments" "commit" "committed" | 1936 | "cluster" "coalesce" "comment" "comments" "commit" "committed" |
| @@ -1941,40 +1941,40 @@ to add functions and PL/SQL keywords.") | |||
| 1941 | "delimiters" "dictionary" "disable" "discard" "document" "domain" | 1941 | "delimiters" "dictionary" "disable" "discard" "document" "domain" |
| 1942 | "drop" "each" "enable" "encoding" "encrypted" "enum" "escape" | 1942 | "drop" "each" "enable" "encoding" "encrypted" "enum" "escape" |
| 1943 | "exclude" "excluding" "exclusive" "execute" "exists" "explain" | 1943 | "exclude" "excluding" "exclusive" "execute" "exists" "explain" |
| 1944 | "external" "extract" "family" "first" "float" "following" "force" | 1944 | "extension" "external" "extract" "family" "first" "float" "following" "force" |
| 1945 | "forward" "function" "functions" "global" "granted" "greatest" | 1945 | "forward" "function" "functions" "global" "granted" "greatest" |
| 1946 | "handler" "header" "hold" "hour" "identity" "if" "immediate" | 1946 | "handler" "header" "hold" "hour" "identity" "if" "immediate" |
| 1947 | "immutable" "implicit" "including" "increment" "index" "indexes" | 1947 | "immutable" "implicit" "including" "increment" "index" "indexes" |
| 1948 | "inherit" "inherits" "inline" "inout" "input" "insensitive" "insert" | 1948 | "inherit" "inherits" "inline" "inout" "input" "insensitive" "insert" |
| 1949 | "instead" "invoker" "isolation" "key" "language" "large" "last" | 1949 | "instead" "invoker" "isolation" "key" "label" "language" "large" "last" |
| 1950 | "lc_collate" "lc_ctype" "least" "level" "listen" "load" "local" | 1950 | "lc_collate" "lc_ctype" "leakproof" "least" "level" "listen" "load" "local" |
| 1951 | "location" "lock" "login" "mapping" "match" "maxvalue" "minute" | 1951 | "location" "lock" "login" "mapping" "match" "maxvalue" "minute" |
| 1952 | "minvalue" "mode" "month" "move" "name" "names" "national" "nchar" | 1952 | "minvalue" "mode" "month" "move" "names" "national" "nchar" |
| 1953 | "next" "no" "nocreatedb" "nocreaterole" "nocreateuser" "noinherit" | 1953 | "next" "no" "nocreatedb" "nocreaterole" "nocreateuser" "noinherit" |
| 1954 | "nologin" "none" "nosuperuser" "nothing" "notify" "nowait" "nullif" | 1954 | "nologin" "none" "noreplication" "nosuperuser" "nothing" "notify" "nowait" "nullif" |
| 1955 | "nulls" "object" "of" "oids" "operator" "option" "options" "out" | 1955 | "nulls" "object" "of" "off" "oids" "operator" "option" "options" "out" |
| 1956 | "overlay" "owned" "owner" "parser" "partial" "partition" "password" | 1956 | "overlay" "owned" "owner" "parser" "partial" "partition" "passing" "password" |
| 1957 | "plans" "position" "preceding" "prepare" "prepared" "preserve" "prior" | 1957 | "plans" "position" "preceding" "precision" "prepare" "prepared" "preserve" "prior" |
| 1958 | "privileges" "procedural" "procedure" "quote" "range" "read" | 1958 | "privileges" "procedural" "procedure" "quote" "range" "read" |
| 1959 | "reassign" "recheck" "recursive" "reindex" "relative" "release" | 1959 | "reassign" "recheck" "recursive" "ref" "reindex" "relative" "release" |
| 1960 | "rename" "repeatable" "replace" "replica" "reset" "restart" "restrict" | 1960 | "rename" "repeatable" "replace" "replica" "replication" "reset" "restart" "restrict" |
| 1961 | "returns" "revoke" "role" "rollback" "row" "rows" "rule" "savepoint" | 1961 | "returns" "revoke" "role" "rollback" "row" "rows" "rule" "savepoint" |
| 1962 | "schema" "scroll" "search" "second" "security" "sequence" "sequences" | 1962 | "schema" "scroll" "search" "second" "security" "sequence" |
| 1963 | "serializable" "server" "session" "set" "setof" "share" "show" | 1963 | "serializable" "server" "session" "set" "setof" "share" "show" |
| 1964 | "simple" "stable" "standalone" "start" "statement" "statistics" | 1964 | "simple" "snapshot" "stable" "standalone" "start" "statement" "statistics" |
| 1965 | "stdin" "stdout" "storage" "strict" "strip" "substring" "superuser" | 1965 | "stdin" "stdout" "storage" "strict" "strip" "substring" "superuser" |
| 1966 | "sysid" "system" "tables" "tablespace" "temp" "template" "temporary" | 1966 | "sysid" "system" "tables" "tablespace" "temp" "template" "temporary" |
| 1967 | "transaction" "treat" "trigger" "trim" "truncate" "trusted" "type" | 1967 | "transaction" "treat" "trim" "truncate" "trusted" "type" "types" |
| 1968 | "unbounded" "uncommitted" "unencrypted" "unknown" "unlisten" "until" | 1968 | "unbounded" "uncommitted" "unencrypted" "unlisten" "unlogged" "until" |
| 1969 | "update" "vacuum" "valid" "validator" "value" "values" "version" | 1969 | "update" "vacuum" "valid" "validate" "validator" "value" "values" "varying" "version" |
| 1970 | "view" "volatile" "whitespace" "work" "wrapper" "write" | 1970 | "view" "volatile" "whitespace" "without" "work" "wrapper" "write" |
| 1971 | "xmlattributes" "xmlconcat" "xmlelement" "xmlforest" "xmlparse" | 1971 | "xmlattributes" "xmlconcat" "xmlelement" "xmlexists" "xmlforest" "xmlparse" |
| 1972 | "xmlpi" "xmlroot" "xmlserialize" "year" "yes" | 1972 | "xmlpi" "xmlroot" "xmlserialize" "year" "yes" "zone" |
| 1973 | ) | 1973 | ) |
| 1974 | 1974 | ||
| 1975 | ;; Postgres Reserved | 1975 | ;; Postgres Reserved |
| 1976 | (sql-font-lock-keywords-builder 'font-lock-keyword-face nil | 1976 | (sql-font-lock-keywords-builder 'font-lock-keyword-face nil |
| 1977 | "all" "analyse" "analyze" "and" "any" "array" "asc" "as" "asymmetric" | 1977 | "all" "analyse" "analyze" "and" "array" "asc" "as" "asymmetric" |
| 1978 | "authorization" "binary" "both" "case" "cast" "check" "collate" | 1978 | "authorization" "binary" "both" "case" "cast" "check" "collate" |
| 1979 | "column" "concurrently" "constraint" "create" "cross" | 1979 | "column" "concurrently" "constraint" "create" "cross" |
| 1980 | "current_catalog" "current_date" "current_role" "current_schema" | 1980 | "current_catalog" "current_date" "current_role" "current_schema" |
| @@ -1983,7 +1983,7 @@ to add functions and PL/SQL keywords.") | |||
| 1983 | "fetch" "foreign" "for" "freeze" "from" "full" "grant" "group" | 1983 | "fetch" "foreign" "for" "freeze" "from" "full" "grant" "group" |
| 1984 | "having" "ilike" "initially" "inner" "in" "intersect" "into" "isnull" | 1984 | "having" "ilike" "initially" "inner" "in" "intersect" "into" "isnull" |
| 1985 | "is" "join" "leading" "left" "like" "limit" "localtime" | 1985 | "is" "join" "leading" "left" "like" "limit" "localtime" |
| 1986 | "localtimestamp" "natural" "notnull" "not" "null" "off" "offset" | 1986 | "localtimestamp" "natural" "notnull" "not" "null" "offset" |
| 1987 | "only" "on" "order" "or" "outer" "overlaps" "over" "placing" "primary" | 1987 | "only" "on" "order" "or" "outer" "overlaps" "over" "placing" "primary" |
| 1988 | "references" "returning" "right" "select" "session_user" "similar" | 1988 | "references" "returning" "right" "select" "session_user" "similar" |
| 1989 | "some" "symmetric" "table" "then" "to" "trailing" "true" "union" | 1989 | "some" "symmetric" "table" "then" "to" "trailing" "true" "union" |
| @@ -1991,15 +1991,21 @@ to add functions and PL/SQL keywords.") | |||
| 1991 | "with" | 1991 | "with" |
| 1992 | ) | 1992 | ) |
| 1993 | 1993 | ||
| 1994 | ;; Postgres PL/pgSQL | ||
| 1995 | (sql-font-lock-keywords-builder 'font-lock-keyword-face nil | ||
| 1996 | "assign" "if" "case" "loop" "while" "for" "foreach" "exit" "elsif" "return" | ||
| 1997 | "raise" "execsql" "dynexecute" "perform" "getdiag" "open" "fetch" "move" "close" | ||
| 1998 | ) | ||
| 1999 | |||
| 1994 | ;; Postgres Data Types | 2000 | ;; Postgres Data Types |
| 1995 | (sql-font-lock-keywords-builder 'font-lock-type-face nil | 2001 | (sql-font-lock-keywords-builder 'font-lock-type-face nil |
| 1996 | "bigint" "bigserial" "bit" "bool" "boolean" "box" "bytea" "char" | 2002 | "bigint" "bigserial" "bit" "bool" "boolean" "box" "bytea" "char" |
| 1997 | "character" "cidr" "circle" "date" "decimal" "double" "float4" | 2003 | "character" "cidr" "circle" "date" "decimal" "double" "float4" |
| 1998 | "float8" "inet" "int" "int2" "int4" "int8" "integer" "interval" "line" | 2004 | "float8" "inet" "int" "int2" "int4" "int8" "integer" "interval" "line" |
| 1999 | "lseg" "macaddr" "money" "numeric" "path" "point" "polygon" | 2005 | "lseg" "macaddr" "money" "name" "numeric" "path" "point" "polygon" |
| 2000 | "precision" "real" "serial" "serial4" "serial8" "smallint" "text" | 2006 | "precision" "real" "serial" "serial4" "serial8" "sequences" "smallint" "text" |
| 2001 | "time" "timestamp" "timestamptz" "timetz" "tsquery" "tsvector" | 2007 | "time" "timestamp" "timestamptz" "timetz" "tsquery" "tsvector" |
| 2002 | "txid_snapshot" "uuid" "varbit" "varchar" "varying" "without" | 2008 | "txid_snapshot" "unknown" "uuid" "varbit" "varchar" "varying" "without" |
| 2003 | "xml" "zone" | 2009 | "xml" "zone" |
| 2004 | ))) | 2010 | ))) |
| 2005 | 2011 | ||