Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Highlight text/coffeescript inside <head> (#65)

  • Loading branch information...
commit 5ea71f6a66dd6f68f7658d715fa0d03b3d461e7f 1 parent 0e1246a
@kchmck authored
Showing with 8 additions and 5 deletions.
  1. +1 −0  after/syntax/html.vim
  2. +7 −5 test/test.html
View
1  after/syntax/html.vim
@@ -8,3 +8,4 @@ syn include @htmlCoffeeScript syntax/coffee.vim
syn region coffeeScript start=+<script [^>]*type *=[^>]*text/coffeescript[^>]*>+
\ end=+</script>+me=s-1 keepend
\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc
+\ containedin=htmlHead
View
12 test/test.html
@@ -1,5 +1,7 @@
-<script type="text/coffeescript">
- abc = {
- def: 42
- }
-</script>
+<head>
+ <script type="text/coffeescript">
+ abc = {
+ def: 42
+ }
+ </script>
+</head>
Please sign in to comment.
Something went wrong with that request. Please try again.