hcl/zclwrite
Martin Atkins ac42b456f3 zclwrite: "format" implementation
This tweaks the number of spaces before each token to create a consistent
layout. It doesn't (yet?) attempt to add or remove line breaks or
otherwise mess with the non-space characters in the code.

The main goal here is to get things to line up. zcl syntax is simple
enough that there's not much latitude for super-weird usage, and so if
someone does manage to write something weird (asymmetric breaking of
brackets between lines, etc) we won't try to fix it here.
2017-06-10 14:11:47 -07:00
..
ast.go zclwrite: start to stub out the mutation API 2017-06-09 08:31:14 -07:00
doc.go zclwrite: stub of zcl code generation package 2017-05-29 16:05:34 -07:00
format_test.go zclwrite: "format" implementation 2017-06-10 14:11:47 -07:00
format.go zclwrite: "format" implementation 2017-06-10 14:11:47 -07:00
native_node_sorter.go zclwrite: foundations of the writer parser 2017-06-06 08:53:13 -07:00
parser_test.go zclsyntax: require newlines after block items 2017-06-09 08:19:47 -07:00
parser.go zclwrite: consume trailing line comments and newlines in body items 2017-06-09 08:00:38 -07:00
public.go zclwrite: Rename "Parse" to "ParseConfig" 2017-06-07 08:28:43 -07:00
round_trip_test.go zclsyntax: require newlines after block items 2017-06-09 08:19:47 -07:00
tokens.go zclwrite: "format" implementation 2017-06-10 14:11:47 -07:00