Error unexpected token: “” (column 1, codepoint U+0000) when making file changes with a code editor

It’s a config file for the database though, so there should be a colon, right? All I did was change the string for the database name. If I make the same edit in Vim, it works fine, but if I use Atom or VS Code, I get that error.