diff options
author | Étienne BERSAC <etienne.bersac@dalibo.com> | 2017-04-26 12:12:35 +0200 |
---|---|---|
committer | Étienne BERSAC <etienne.bersac@dalibo.com> | 2017-04-27 21:32:43 +0200 |
commit | 293b6b3a412255cc2c12f0fe94d41760d4f47d8e (patch) | |
tree | cdcd8acdfc7d0c5766ff4c288d0ce7fe95d0eb46 /tests/metadata.py | |
parent | d4967adf41dfd69a8f9e126863465cfaab44e76b (diff) |
Complete keywords depending on previous token
Keywords list is based on
https://www.postgresql.org/docs/9.6/static/sql-commands.html.
Diffstat (limited to 'tests/metadata.py')
-rw-r--r-- | tests/metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/metadata.py b/tests/metadata.py index 15b4bc2b..37c8ff96 100644 --- a/tests/metadata.py +++ b/tests/metadata.py @@ -66,7 +66,7 @@ class MetaData(object): return [datatype(dt, pos) for dt in self.completer.datatypes] def keywords(self, pos=0): - return [keyword(kw, pos) for kw in self.completer.keywords] + return [keyword(kw, pos) for kw in self.completer.keywords_tree.keys()] def columns(self, tbl, parent='public', typ='tables', pos=0): if typ == 'functions': |