Skip to content

Commit

Permalink
The "or replace" of create function is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Dec 10, 2015
1 parent f66d688 commit ab72cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/pgsql.vim
Expand Up @@ -82,7 +82,7 @@ syn match pgsqlKeyword "\<discard\s\+\(all\|plans\|sequences\|temp\|tempora
syn match pgsqlKeyword "\<\(alter\|add\|drop\|comment\s\+on\|create\)\s\+\(aggregate\|attribute\|cast\|collation\|conversion\|database\|default\s\+privileges\|domain\|\(event\s\+\)\?trigger\|extension\|foreign\s\+\(data\s\+wrapper\|table\)\|function\|group\|index\(\s\+concurrently\)\?\|\(procedural\s\+\)\?language\|materialized\s\+view\|operator\(\s\+class\|\s\+family\)\?\|owned\s\+by\|role\|rule\|schema\|sequence\|server\|table\|tablespace\|text\s\+search\s\+\(configuration\|dictionary\|parser\|template\)\|type\|user\(\s\+mapping\)\?\|view\)\>"

syn match pgsqlKeyword "\<create\s\+default\s\+conversion\>"
syn match pgsqlKeyword "\<create\s\+or\s\+replace\s\+\(function\|\(trusted\s\+\)\?\(procedural\s\+\)\?language\|rule\)\>"
syn match pgsqlKeyword "\<create\s\+\(or\s\+replace\s\+\)\?\(function\|\(trusted\s\+\)\?\(procedural\s\+\)\?language\|rule\)\>"
syn match pgsqlKeyword "\<create\s\+unique\s\+index\(\s\+concurrently\)\?\>"
syn match pgsqlKeyword "\<create\s\+temp\(orary\)\?\s\+sequence\>"
syn match pgsqlKeyword "\<create\s\+\(temp\(orary\)\?\|unlogged\)\s\+table\>"
Expand Down
1 change: 1 addition & 0 deletions test/test.pgsql
Expand Up @@ -266,6 +266,7 @@ create event trigger execute procedure
create extension with schema x version y from z
create or replace function returns xcf
create or replace trusted procedural language x handler x validator x inline x
create trusted procedural language x handler x validator x inline x
create unique index foo
create unique index concurrently foo
create rule
Expand Down

0 comments on commit ab72cec

Please sign in to comment.