This patch fixes javascript.vim and css.vim from clobbering plugin syntaxes when sourced via html.vim.
Would it be possible to get this in for 7.4? More details here: https://groups.google.com/forum/#!topic/vim_dev/4Idz6Em2ZuU It's a long explanation, so this would be the TL;DR for it Cheers, Amadeus -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
# HG changeset patch # User amadeus <[email protected]> # Date 1374221751 25200 # Fri Jul 19 01:15:51 2013 -0700 # Node ID 975c74cb3a154aba102a9958e9a2edcb5454d6b6 # Parent 99797d166c1f1c08aac370af3b1fec100d98f71f Improve built in javascript.vim and css.vim in html files This commit prevents the built in javascript.vim and css.vim runtime files from clobbering a plugin that may have already setup syntax rules. diff -r 99797d166c1f -r 975c74cb3a15 runtime/syntax/css.vim --- a/runtime/syntax/css.vim Thu Jul 04 22:50:40 2013 +0200 +++ b/runtime/syntax/css.vim Fri Jul 19 01:15:51 2013 -0700 @@ -17,6 +17,10 @@ finish endif let main_syntax = 'css' +elseif exists("b:current_syntax") + if b:current_syntax == 'css' + finish + endif endif let s:cpo_save = &cpo diff -r 99797d166c1f -r 975c74cb3a15 runtime/syntax/javascript.vim --- a/runtime/syntax/javascript.vim Thu Jul 04 22:50:40 2013 +0200 +++ b/runtime/syntax/javascript.vim Fri Jul 19 01:15:51 2013 -0700 @@ -22,6 +22,10 @@ finish endif let main_syntax = 'javascript' +elseif exists("b:current_syntax") + if b:current_syntax == 'javascript' + finish + endif endif let s:cpo_save = &cpo
