Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

More known data types #1

Merged
merged 2 commits into from

2 participants

@baest

Hi, I've added enum, hstore and timestamptz to the data types and wrote a comment in the readme about loading pgsql.vim using sql.vim

@exu exu merged commit 4b05bef into exu:master
@exu
Owner

thanks, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 3 deletions.
  1. +3 −0  README.md
  2. +3 −3 syntax/pgsql.vim
View
3  README.md
@@ -12,3 +12,6 @@ you can insert this lines to your *filetype.vim*
au BufNewFile,BufRead *.sql setf pgsql
+Or load it using the default sql.vim:
+
+ let g:sql_type_default = 'pgsql'
View
6 syntax/pgsql.vim
@@ -76,8 +76,8 @@ syn sync ccomment pgsqlComment
syn keyword pgsqlType anyarray anyelement abstime anyenum
syn keyword pgsqlType anynonarray any aclitem bytea bit
syn keyword pgsqlType boolean bigint box cidr cstring char
-syn keyword pgsqlType character cid circle double date
-syn keyword pgsqlType gtsvector inet interval internal
+syn keyword pgsqlType character cid circle double date enum
+syn keyword pgsqlType gtsvector hstore inet interval internal
syn keyword pgsqlType int2vector integer line lseg
syn keyword pgsqlType language_handler macaddr money numeric
syn keyword pgsqlType name opaque oidvector oid polygon point
@@ -86,7 +86,7 @@ syn keyword pgsqlType regtype refcursor regoperator reltime
syn keyword pgsqlType record regproc regdictionary regoper
syn keyword pgsqlType regprocedure regconfig smgr smallint
syn keyword pgsqlType time tsquery tinterval trigger tid
-syn keyword pgsqlType timestamp text tsvector txid_snapshot
+syn keyword pgsqlType timestamp timestamptz text tsvector txid_snapshot
syn keyword pgsqlType unknown uuid void varying with without
syn keyword pgsqlType xml xid zone
Something went wrong with that request. Please try again.