Skip to content

Commit e8d6e10

Browse files
author
Darrick Wiebe
committed
Merge pull request pangloss#21 from mando/master
Fix for Syntax file adjusts folding settings issue
2 parents 91540f6 + 3178b33 commit e8d6e10

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

syntax/javascript.vim

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ if exists("b:javascript_fold")
174174
syntax match javaScriptOpAssign /=\@<!=/ nextgroup=javaScriptFuncBlock skipwhite skipempty
175175
syntax region javaScriptFuncName contained matchgroup=javaScriptFuncName start=/\%(\$\|\w\)*\s*(/ end=/)/ contains=javaScriptLineComment,javaScriptComment nextgroup=javaScriptFuncBlock skipwhite skipempty
176176
syntax region javaScriptFuncBlock contained matchgroup=javaScriptFuncBlock start="{" end="}" contains=@javaScriptAll,javaScriptParensErrA,javaScriptParensErrB,javaScriptParen,javaScriptBracket,javaScriptBlock fold
177-
178-
if &l:filetype=='javascript' && !&diff
179-
" Fold setting
180-
" Redefine the foldtext (to show a JS function outline) and foldlevel
181-
" only if the entire buffer is JavaScript, but not if JavaScript syntax
182-
" is embedded in another syntax (e.g. HTML).
183-
setlocal foldmethod=syntax
184-
setlocal foldlevel=4
185-
endif
186177
else
187178
syntax keyword javaScriptFunction function
188179
setlocal foldmethod<

0 commit comments

Comments
 (0)