comparison 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
comparison
equal deleted inserted replaced
518:5b06950f7d45 519:a198065ff6e8
44 44
45 " Syntax: Numbers 45 " Syntax: Numbers
46 syn match jsonNumber "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>\ze[[:blank:]\r\n]*[,}\]]" 46 syn match jsonNumber "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>\ze[[:blank:]\r\n]*[,}\]]"
47 47
48 " ERROR WARNINGS ********************************************** 48 " ERROR WARNINGS **********************************************
49 if (g:vim_json_warnings == 1) 49 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1)
50 " Syntax: Strings should always be enclosed with quotes. 50 " Syntax: Strings should always be enclosed with quotes.
51 syn match jsonNoQuotesError "\<[[:alpha:]]\+\>" 51 syn match jsonNoQuotesError "\<[[:alpha:]]\+\>"
52 52
53 " Syntax: An integer part of 0 followed by other digits is not allowed. 53 " Syntax: An integer part of 0 followed by other digits is not allowed.
54 syn match jsonNumError "-\=\<0\d\.\d*\>" 54 syn match jsonNumError "-\=\<0\d\.\d*\>"
109 HiLink jsonBooleanTrue jsonBoolean 109 HiLink jsonBooleanTrue jsonBoolean
110 HiLink jsonBooleanFalse jsonBoolean 110 HiLink jsonBooleanFalse jsonBoolean
111 HiLink jsonBoolean Boolean 111 HiLink jsonBoolean Boolean
112 HiLink jsonKeyword Label 112 HiLink jsonKeyword Label
113 113
114 if (g:vim_json_warnings == 1) 114 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1)
115 HiLink jsonNumError Error 115 HiLink jsonNumError Error
116 HiLink jsonCommentError Error 116 HiLink jsonCommentError Error
117 HiLink jsonSemicolonError Error 117 HiLink jsonSemicolonError Error
118 HiLink jsonTrailingCommaError Error 118 HiLink jsonTrailingCommaError Error
119 HiLink jsonMissingCommaError Error 119 HiLink jsonMissingCommaError Error