|
@@ -47,7 +47,7 @@ class ReindentFilter(object):
|
|
|
def _next_token(self, tlist, idx=-1):
|
|
def _next_token(self, tlist, idx=-1):
|
|
|
split_words = ('FROM', 'STRAIGHT_JOIN$', 'JOIN$', 'AND', 'OR',
|
|
split_words = ('FROM', 'STRAIGHT_JOIN$', 'JOIN$', 'AND', 'OR',
|
|
|
'GROUP', 'ORDER', 'UNION', 'VALUES',
|
|
'GROUP', 'ORDER', 'UNION', 'VALUES',
|
|
|
- 'SET', 'BETWEEN', 'EXCEPT', 'HAVING')
|
|
|
|
|
|
|
+ 'SET', 'BETWEEN', 'EXCEPT', 'HAVING', 'LIMIT')
|
|
|
m_split = T.Keyword, split_words, True
|
|
m_split = T.Keyword, split_words, True
|
|
|
tidx, token = tlist.token_next_by(m=m_split, idx=idx)
|
|
tidx, token = tlist.token_next_by(m=m_split, idx=idx)
|
|
|
|
|
|