Skip to content

Commit 27ec99a

Browse files
authored
Merge pull request #614 from pangloss/fix-export-default-indent
Fix export default style indents
2 parents 2e3ab0a + fd6c2b7 commit 27ec99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: indent/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ endfunction
8383
" https://github.com/sweet-js/sweet.js/wiki/design#give-lookbehind-to-the-reader
8484
function s:IsBlock()
8585
return getline(line('.'))[col('.')-1] == '{' && !search(
86-
\ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|import\|export\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|\<in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
86+
\ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|import\|export\|default\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|\<in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
8787
\ (!search(':\_s*\%#','bW') || (!s:GetPair('[({[]','[])}]','bW',200) || s:IsBlock()))
8888
endfunction
8989

0 commit comments

Comments
 (0)