Commit graph

12 commits

Author SHA1 Message Date
Iazel
a97f7c9c45 Quotes string starting with a dot
To understand why we want to do this, please refer to this issue on ktmpl repository (a way to have templates for kubernetes):
https://github.com/InQuicker/ktmpl/issues/15

The problem applies only to string used as keys, but given that the emitters right now doesn't differentiate the two cases for string, I think is better to do it also for values instead of introducing branching and/or flag variables (can't think of cleaner solution for now).
2017-05-06 19:06:10 +02:00
Tom Parker
9d5cb99ca2 Remove warnings about unused items 2017-03-12 16:00:10 +00:00
Yuheng Chen
23f08da865 Emitter: quote strings starts/ends with spaces 2016-11-24 17:24:02 +08:00
Yuheng Chen
6a0e4ad656 always quote empty string 2016-11-10 15:31:07 +08:00
Antoni Boucher
2269e040a3 Fixed to always avoid quoting when possible. 2016-11-02 16:56:46 -04:00
Antoni Boucher
d4b6dfe316 Added an option to avoid emitting quotes. 2016-11-01 22:03:35 -04:00
Hendrik Sollich
95f414a8ef added test for emitting equivalence of complex keys 2016-09-24 23:59:09 +02:00
Hendrik Sollich
53b5936a81 fixed: emitter also emits complex keys 2016-09-16 23:32:53 +02:00
David Tolnay
6ba6fec475 Resolve remaining clippy lints and add to Travis build 2016-02-27 16:42:32 -08:00
Yuheng Chen
c1b5dd296f Better code coverage 2015-06-04 16:10:43 +08:00
Yuheng Chen
23b3c7f024 Export API 2015-05-31 17:02:22 +08:00
Yuheng Chen
19fc6027e8 Add basic emitter 2015-05-31 12:56:45 +08:00