Mercurial > vim
comparison runtime/syntax/json.vim @ 10051:46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 31 22:22:10 2016 +0200
Updated runtime files. Remove HiLink commands.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Aug 2016 22:30:08 +0200 |
parents | 43efa4f5a8ea |
children | b9bc47742df6 |
comparison
equal
deleted
inserted
replaced
10050:b702edc4b2b8 | 10051:46763b01cd9a |
---|---|
91 syn region jsonFold matchgroup=jsonBraces start="{" end=/}\(\_s\+\ze\("\|{\)\)\@!/ transparent fold | 91 syn region jsonFold matchgroup=jsonBraces start="{" end=/}\(\_s\+\ze\("\|{\)\)\@!/ transparent fold |
92 syn region jsonFold matchgroup=jsonBraces start="\[" end=/]\(\_s\+\ze"\)\@!/ transparent fold | 92 syn region jsonFold matchgroup=jsonBraces start="\[" end=/]\(\_s\+\ze"\)\@!/ transparent fold |
93 | 93 |
94 " Define the default highlighting. | 94 " Define the default highlighting. |
95 " Only when an item doesn't have highlighting yet | 95 " Only when an item doesn't have highlighting yet |
96 command -nargs=+ HiLink hi def link <args> | 96 hi def link jsonPadding Operator |
97 HiLink jsonPadding Operator | 97 hi def link jsonString String |
98 HiLink jsonString String | 98 hi def link jsonTest Label |
99 HiLink jsonTest Label | 99 hi def link jsonEscape Special |
100 HiLink jsonEscape Special | 100 hi def link jsonNumber Number |
101 HiLink jsonNumber Number | 101 hi def link jsonBraces Delimiter |
102 HiLink jsonBraces Delimiter | 102 hi def link jsonNull Function |
103 HiLink jsonNull Function | 103 hi def link jsonBoolean Boolean |
104 HiLink jsonBoolean Boolean | 104 hi def link jsonKeyword Label |
105 HiLink jsonKeyword Label | |
106 | 105 |
107 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1) | 106 if (!exists("g:vim_json_warnings") || g:vim_json_warnings==1) |
108 HiLink jsonNumError Error | 107 hi def link jsonNumError Error |
109 HiLink jsonCommentError Error | 108 hi def link jsonCommentError Error |
110 HiLink jsonSemicolonError Error | 109 hi def link jsonSemicolonError Error |
111 HiLink jsonTrailingCommaError Error | 110 hi def link jsonTrailingCommaError Error |
112 HiLink jsonMissingCommaError Error | 111 hi def link jsonMissingCommaError Error |
113 HiLink jsonStringSQError Error | 112 hi def link jsonStringSQError Error |
114 HiLink jsonNoQuotesError Error | 113 hi def link jsonNoQuotesError Error |
115 HiLink jsonTripleQuotesError Error | 114 hi def link jsonTripleQuotesError Error |
116 endif | 115 endif |
117 HiLink jsonQuote Quote | 116 hi def link jsonQuote Quote |
118 HiLink jsonNoise Noise | 117 hi def link jsonNoise Noise |
119 delcommand HiLink | |
120 | 118 |
121 let b:current_syntax = "json" | 119 let b:current_syntax = "json" |
122 if main_syntax == 'json' | 120 if main_syntax == 'json' |
123 unlet main_syntax | 121 unlet main_syntax |
124 endif | 122 endif |