Mercurial > ec-dotfiles
diff vendor/vim-syntax/json.vim @ 519:a198065ff6e8
Even more update on json syntax.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 29 May 2014 06:58:49 +0400 |
parents | 14b645f67f7c |
children | 351bd965bc1f |
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