Closed frothywater closed 4 years ago
Quoted strings as map keys is perfectly allowed by YAML grammar, so this is rather a matter of taste than a problem.
My personal style preference (not a recommendation) is not to quote the key in the first case, but to add quotes whenever the range of the string key may appear unclear, even not strictly required by grammar.
Oh, it's strange. Because the original yaml doesn't work for me (using fcitx-rime on Deepin 15.11). And I'm not so familiar with yaml, thought that it should be somehow different from json's quoted key notation. Then I just remove the two quote signs then it worked! Anyhow, thanks for your reply!
translator/dictionary
- A key doesn't need quote signs. Unless the dictionary just doesn't work properly.