diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-12 21:22:07 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-14 03:28:20 -0700 |
| commit | 405a66817f1b0789901adf9c81b96658a04e6950 (patch) | |
| tree | 539964c292a7e370bfdb86b9018438b227347247 /sqlparse | |
| parent | 0bcb34cc1514d77446a29c2c636a3f9a653588f2 (diff) | |
| download | sqlparse-405a66817f1b0789901adf9c81b96658a04e6950.tar.gz | |
Reapply fix for case within paranthesis
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/engine/grouping.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index cae5d23..f9ca6b4 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -43,7 +43,9 @@ def _group_left_right(tlist, m, cls, def _group_matching(tlist, cls): """Groups Tokens that have beginning and end.""" - idx = 1 if imt(tlist, i=cls) else 0 + [_group_matching(sgroup, cls) for sgroup in tlist.get_sublists() + if not isinstance(sgroup, cls)] + idx = 1 if isinstance(tlist, cls) else 0 opens = [] |
