Mercurial > ec-dotfiles
changeset 519:a198065ff6e8
Even more update on json syntax.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 29 May 2014 06:58:49 +0400 |
parents | 5b06950f7d45 |
children | a60af1e859e4 |
files | vendor/vim-syntax/json.vim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/vim-syntax/json.vim Wed May 28 17:17:37 2014 +0900 +++ b/vendor/vim-syntax/json.vim Thu May 29 06:58:49 2014 +0400 @@ -46,7 +46,7 @@ syn match jsonNumber "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>\ze[[:blank:]\r\n]*[,}\]]" " ERROR WARNINGS ********************************************** -if (g:vim_json_warnings == 1) +if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1) " Syntax: Strings should always be enclosed with quotes. syn match jsonNoQuotesError "\<[[:alpha:]]\+\>" @@ -111,7 +111,7 @@ HiLink jsonBoolean Boolean HiLink jsonKeyword Label - if (g:vim_json_warnings == 1) + if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1) HiLink jsonNumError Error HiLink jsonCommentError Error HiLink jsonSemicolonError Error