Skip to content

Commit

Permalink
Fix highlighting in HTML files.
Browse files Browse the repository at this point in the history
Vim's default HTML syntax file colors all Javascript code with the
'Special' group.
  • Loading branch information
int3 committed Feb 18, 2012
1 parent 9bc0eb1 commit cc074c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ endif
"syntax clear javaScriptExpression
syntax cluster htmlJavaScript contains=@javaScriptAll,javaScriptBracket,javaScriptParen,javaScriptBlock,javaScriptParenError
syntax cluster javaScriptExpression contains=@javaScriptAll,javaScriptBracket,javaScriptParen,javaScriptBlock,javaScriptParenError,@htmlPreproc
" Vim's default html.vim highlights all javascript as 'Special'
hi! def link javaScript NONE

let b:current_syntax = "javascript"
if main_syntax == 'javascript'
Expand Down

0 comments on commit cc074c3

Please sign in to comment.