Skip to content

Commit b1c0646

Browse files
authored
Putting LIMIT on a new line andialbrecht#320
andialbrecht#320
1 parent 5a9ed09 commit b1c0646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlparse/filters/reindent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def nl(self, offset=0):
5151
def _next_token(self, tlist, idx=-1):
5252
split_words = ('FROM', 'STRAIGHT_JOIN$', 'JOIN$', 'AND', 'OR',
5353
'GROUP', 'ORDER', 'UNION', 'VALUES',
54-
'SET', 'BETWEEN', 'EXCEPT', 'HAVING')
54+
'SET', 'BETWEEN', 'EXCEPT', 'HAVING', 'LIMIT')
5555
m_split = T.Keyword, split_words, True
5656
tidx, token = tlist.token_next_by(m=m_split, idx=idx)
5757

0 commit comments

Comments
 (0)