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