Make json syntax embed aware
This commit is contained in:
parent
b27cee4756
commit
6cd3e58b14
@ -1,6 +1,9 @@
|
|||||||
|
if !exists("main_syntax")
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
let main_syntax = 'json'
|
||||||
|
endif
|
||||||
|
|
||||||
syn cluster jsonValue contains=jsonString,jsonNumber,jsonObject,jsonArray,jsonBoolean,jsonNull
|
syn cluster jsonValue contains=jsonString,jsonNumber,jsonObject,jsonArray,jsonBoolean,jsonNull
|
||||||
|
|
||||||
@ -31,3 +34,6 @@ hi default link jsonColon Delimiter
|
|||||||
hi default link jsonComma Delimiter
|
hi default link jsonComma Delimiter
|
||||||
|
|
||||||
let b:current_syntax = 'json'
|
let b:current_syntax = 'json'
|
||||||
|
if main_syntax == 'json'
|
||||||
|
unlet main_syntax
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user