hcl/zclwrite
Martin Atkins c88641b147 zclwrite: absorb lead comments into attributes
The native parser's ranges don't include any surrounding comments, so we
need to do a little more work to pick them out of the surrounding token
sequences.

This just takes care of _lead_ comments, which are those that appear as
whole line comments above the item in question. Line comments, which
appear after the item on the same line, will follow in a later commit.
2017-06-08 09:04:27 -07:00
..
ast.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
doc.go zclwrite: stub of zcl code generation package 2017-05-29 16:05:34 -07:00
format.go zclwrite: begin to flesh out public interface 2017-06-07 07:24:10 -07:00
native_node_sorter.go zclwrite: foundations of the writer parser 2017-06-06 08:53:13 -07:00
parser_test.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
parser.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
public.go zclwrite: Rename "Parse" to "ParseConfig" 2017-06-07 08:28:43 -07:00
round_trip_test.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
tokens.go zclwrite: Don't crash if EachToken called on a nil TokenSeq. 2017-06-07 07:39:01 -07:00