comparison vendor/vim-syntax/json.vim @ 562:6f57f959cc0b

Update vim syntaxes.
author nanaya <me@myconan.net>
date Thu, 04 Jun 2015 18:25:29 +0900
parents 351bd965bc1f
children 7fbadf8bd22e
comparison
equal deleted inserted replaced
561:1c47fcd75614 562:6f57f959cc0b
34 34
35 " Syntax: JSON Keywords 35 " Syntax: JSON Keywords
36 " Separated into a match and region because a region by itself is always greedy 36 " Separated into a match and region because a region by itself is always greedy
37 syn match jsonKeywordMatch /"\([^"]\|\\\"\)\+"[[:blank:]\r\n]*\:/ contains=jsonKeyword 37 syn match jsonKeywordMatch /"\([^"]\|\\\"\)\+"[[:blank:]\r\n]*\:/ contains=jsonKeyword
38 if has('conceal') && g:vim_json_syntax_conceal == 1 38 if has('conceal') && g:vim_json_syntax_conceal == 1
39 syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ concealends contained 39 syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ concealends contains=jsonEscape contained
40 else 40 else
41 syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ contained 41 syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ contains=jsonEscape contained
42 endif 42 endif
43 43
44 " Syntax: Escape sequences 44 " Syntax: Escape sequences
45 syn match jsonEscape "\\["\\/bfnrt]" contained 45 syn match jsonEscape "\\["\\/bfnrt]" contained
46 syn match jsonEscape "\\u\x\{4}" contained 46 syn match jsonEscape "\\u\x\{4}" contained
99 if version >= 508 || !exists("did_json_syn_inits") 99 if version >= 508 || !exists("did_json_syn_inits")
100 hi def link jsonPadding Operator 100 hi def link jsonPadding Operator
101 hi def link jsonString String 101 hi def link jsonString String
102 hi def link jsonTest Label 102 hi def link jsonTest Label
103 hi def link jsonEscape Special 103 hi def link jsonEscape Special
104 hi def link jsonNumber Number 104 hi def link jsonNumber Delimiter
105 hi def link jsonBraces Delimiter 105 hi def link jsonBraces Delimiter
106 hi def link jsonNull Function 106 hi def link jsonNull Function
107 hi def link jsonBoolean Boolean 107 hi def link jsonBoolean Delimiter
108 hi def link jsonKeyword Label 108 hi def link jsonKeyword Label
109 109
110 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1) 110 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1)
111 hi def link jsonNumError Error 111 hi def link jsonNumError Error
112 hi def link jsonCommentError Error 112 hi def link jsonCommentError Error