From 5b77877888162f4e415fe9a7b8c5e9fb5dfb6ee1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 20:43:42 +0200 Subject: Add syntax files from upstream vim repository --- ftplugin/json.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ftplugin/json.vim') diff --git a/ftplugin/json.vim b/ftplugin/json.vim index 3f4adccd..344f814a 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,3 +1,24 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 + +" Vim filetype plugin +" Language: JSON +" Maintainer: David Barnett +" Last Change: 2014 Jul 16 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = 'setlocal formatoptions< comments< commentstring<' + +setlocal formatoptions-=t + +" JSON has no comments. +setlocal comments= +setlocal commentstring= + +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1 " Vim syntax file -- cgit v1.2.3