Skip to content

Commit 3d8197e

Browse files
committed
Fix accidental detection of backslashes as tokens
Previously backslashes were accidentally detected as tokens by the indentation tokeniser. This meant that character literals, would break indentation of everything after them.
1 parent a4beb52 commit 3d8197e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function! s:TokeniseLine(line_num)
4343
while 1
4444
" We perform searches within the buffer (and move the cusor)
4545
" for better performance than looping char by char in a line.
46-
let token = searchpos('[()\[\]{};"]', 'bW', a:line_num)
46+
let token = searchpos('[()[\]{};"]', 'bW', a:line_num)
4747

4848
" No more matches, exit loop.
4949
if token == [0, 0] | break | endif

0 commit comments

Comments
 (0)