Commit Graph

7 Commits

Author SHA1 Message Date
Kim Alvefur
e756ac2c5a Expand Lua examples 2023-08-05 17:28:50 +02:00
Kim Alvefur
11605f6b63 Respect string Style in Lua encoder
Lua has 'single', "double" and [[ long ]] strings.
2023-08-05 17:28:31 +02:00
Kim Alvefur
0debfc3cf9 Implement indentation in in Lua output 2023-08-05 17:28:21 +02:00
Kim Alvefur
ba90b795da Convert octal for Lua output
Lua doesn't have the 0oNNN syntax for octal integers, only decimal and
hexadecimal, hence those can be passed trough as is while octal needs
special treatment.
2023-08-05 17:08:38 +02:00
Kim Alvefur
096497cdfc Generate Lua encoder documentation
Mostly just for the boilerplate
2023-08-05 17:08:38 +02:00
Kim Alvefur
3a372ef9e0 Additional Lua output tests 2023-08-05 17:08:38 +02:00
Kim Alvefur
0b54f9caca Add initial test for Lua encoder
Boilerplate mostly copied from toml_test.go
2023-08-05 17:08:38 +02:00