File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ setlocal indentexpr=GetCoffeeHtmlIndent(v:lnum)
18
18
19
19
function ! GetCoffeeHtmlIndent (curlinenum)
20
20
" See if we're inside a coffeescript block.
21
- let scriptlnum = searchpair (' <script [^>]*type=" text/coffeescript" [^>]*>' , ' ' ,
21
+ let scriptlnum = searchpair (' <script [^>]*type=[ '' "]\? text/coffeescript[ '' "]\? [^>]*>' , ' ' ,
22
22
\ ' </script>' , ' bWn' )
23
23
let prevlnum = prevnonblank (a: curlinenum )
24
24
Original file line number Diff line number Diff line change 9
9
10
10
" Syntax highlighting for text/coffeescript script tags
11
11
syn include @htmlCoffeeScript syntax/coffee.vim
12
- syn region coffeeScript start =# <script [^>]*type=" text/coffeescript" [^>]*>#
12
+ syn region coffeeScript start =# <script [^>]*type=['"] \? text/coffeescript['"] \? [^>]*>#
13
13
\ end = #</script> #me= s - 1 keepend
14
14
\ contains= @h tmlCoffeeScript,htmlScriptTag,@h tmlPreproc
15
15
\ containedin= htmlHead
Original file line number Diff line number Diff line change 4
4
def : 42
5
5
}
6
6
</ script >
7
+ < script type ='text/coffeescript '>
8
+ abc = {
9
+ def : 42
10
+ }
11
+ </ script >
12
+ < script type =text/coffeescript >
13
+ abc = {
14
+ def : 42
15
+ }
16
+ </ script >
7
17
</ head >
You can’t perform that action at this time.
0 commit comments