mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 411 forks source link

Can't parse formatted snippets.json #435

Closed yibhou closed 5 years ago

yibhou commented 5 years ago

vimrc: let g:user_emmet_settings = webapi#json#decode(join(
\ readfile(expand('$HOME/.snippets.json')), '\n'))

Error detected while processing function webapi#json#decode: line 8: E605: Exception not caught: {\n "variables": { "lang" : "cn", "locale": "en-US" }\n}

can not parse this : { "variables": { "lang" : "cn", "locale": "en-US" } } but successful below: (in one line code) {"variables": { "lang" : "cn", "locale": "en-US" }}

mattn commented 5 years ago

Please use "\n" instead of '\n'