Update runtime files. Make matchparen plugin backwards compatible.
Add json filetype.
This commit is contained in:
16
runtime/syntax/json.vim
Normal file
16
runtime/syntax/json.vim
Normal file
@ -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'
|
||||
Reference in New Issue
Block a user