My reasons for wanting to do this instead of just using the javascript filetype are:
* JSON is not JavaScript, it's a very small subset of the language. Comments and many other details of JavaScript syntax are completely invalid in a JavaScript file, so it's misleading to treat them as the same filetype.
* Several plugins (syntastic, vim-snippets, vim-addon-manager) refer to a "json" filetype that doesn't actually exist unless you install some third-party plugin to apply it. This leads to vim unexpectedly triggering "javascript" actions on "json" files, and in the case of vim-addon-manager means addon-info.json files aren't syntax highlighted at all (https://github.com/MarcWeber/vim-addon-manager/issues/163).
David
+1
--
--
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 a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/TN1NLapzf44/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.