Skip to content

Commit cea724c

Browse files
authored
move html var decl
1 parent 8eba141 commit cea724c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

indent/javascript.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ if exists('b:did_indent')
1010
endif
1111
let b:did_indent = 1
1212

13-
" indent correctly if inside <script>
14-
" vim/vim@690afe1 for the switch from cindent
15-
" overridden with b:html_indent_script1
16-
call extend(g:,{'html_indent_script1': 'inc'},'keep')
17-
1813
" Now, set up our indentation expression and keys that trigger it.
1914
setlocal indentexpr=GetJavascriptIndent()
2015
setlocal autoindent nolisp nosmartindent
@@ -34,6 +29,11 @@ endif
3429
let s:cpo_save = &cpo
3530
set cpo&vim
3631

32+
" indent correctly if inside <script>
33+
" vim/vim@690afe1 for the switch from cindent
34+
" overridden with b:html_indent_script1
35+
call extend(g:,{'html_indent_script1': 'inc'},'keep')
36+
3737
" Regex of syntax group names that are or delimit string or are comments.
3838
let s:bvars = {
3939
\ 'syng_strcom': 'string\|comment\|regex\|special\|doc\|template\%(braces\)\@!',

0 commit comments

Comments
 (0)