diff options
Diffstat (limited to 'runtime/syntax/json.vim')
-rw-r--r-- | runtime/syntax/json.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/syntax/json.vim b/runtime/syntax/json.vim new file mode 100644 index 000000000..f2d880b1d --- /dev/null +++ b/runtime/syntax/json.vim @@ -0,0 +1,16 @@ +" Vim syntax file +" Language: JSON +" Maintainer: David Barnett <daviebdawg+vim@gmail.com> +" Last Change: 2014 Jul 16 + +" For version 5.x: Clear all syntax items. +" For version 6.x and later: Quit when a syntax file was already loaded. +if exists('b:current_syntax') + finish +endif + +" Use JavaScript syntax. JSON is a subset of JavaScript. +runtime! syntax/javascript.vim +unlet b:current_syntax + +let b:current_syntax = 'json' |