elzr / vim-json

A better JSON for Vim: distinct highlighting of keywords vs values, JSON-specific (non-JS) warnings, quote concealing. Pathogen-friendly.
Other
1.23k stars 111 forks source link

BUG: '{' in a string will mess up indentation #90

Open davidnorthetal opened 6 years ago

davidnorthetal commented 6 years ago

indent/json.vim seems to interpret '{' within a string equally as outside of it, thus it "thinks" that a '{' within a string starts a new json-object,

thus e.g. using autoindentation:

{
    "foo": "{",
        "bar": "qux"
    }
Ajhad1 commented 4 years ago

This is still happening.