Commit Graph

1232 Commits

Author SHA1 Message Date
Fatih Arslan c9ef0afb41 printer: imropve alignment printing for standalone comments 2015-10-31 17:45:43 +03:00
Fatih Arslan 07cb426729 parser: fix panicing for # style comments
HCL supports # style comments, which are 1 size len. We assumed that
it's always // or /* , which are two size length
2015-10-31 15:11:53 +03:00
Fatih Arslan 9b5083066a printer: implement standalone comments, still WIP 2015-10-31 15:01:49 +03:00
Fatih Arslan 792e0fef49 printer: simplify standalone collecting 2015-10-31 01:19:32 +03:00
Fatih Arslan 629539558b printer: collect standalone comments for printing 2015-10-31 01:15:36 +03:00
Fatih Arslan 407cd650d1 hcl: add *ast.File with comments 2015-10-30 22:51:35 +03:00
Fatih Arslan 877d63151c printer: support lead comment on aligned items 2015-10-30 21:49:10 +03:00
Fatih Arslan b4756273da printer: now aligned comments are working as expected 2015-10-28 02:40:51 +03:00
Fatih Arslan 3a165313db printer: improvements on comment aligning 2015-10-28 01:07:37 +03:00
Fatih Arslan a16955dcad printer: partially fixed aligned comments, still WIP 2015-10-28 00:59:54 +03:00
Fatih Arslan b93aefc3c3 printer: add aligned comment support, still WIP 2015-10-27 23:51:44 +03:00
Fatih Arslan 3ee0cb44fa printer: fix leadcomments for multiple comments 2015-10-27 01:42:05 +03:00
Fatih Arslan bbc2d19923 parser: simplify objectItem method 2015-10-27 01:26:51 +03:00
Fatih Arslan acef702a2f hcl: support attaching comments to ast and printing them 2015-10-27 01:23:22 +03:00
Fatih Arslan e6b8a3e7b4 parser: rename methods 2015-10-26 21:37:17 +03:00
Fatih Arslan 26846b5931 parser: fix leaked comment 2015-10-26 01:46:37 +03:00
Fatih Arslan 710dd69efb Several changed and improvements 2015-10-26 01:34:41 +03:00
Fatih Arslan c9e7ec3621 printer: add list example 2015-10-25 21:18:46 +03:00
Fatih Arslan c703010b7f README.md: small fixes 2015-10-25 19:57:07 +03:00
Fatih Arslan df379b5fc1 hcl: move fmt to hclfmt repository 2015-10-25 19:43:02 +03:00
Fatih Arslan 0f1099656c README.md: update license information 2015-10-25 19:30:31 +03:00
Fatih Arslan 5329930d86 BSD 3-clause license 2015-10-25 19:29:57 +03:00
Fatih Arslan ea21641224 Add README file 2015-10-25 19:27:26 +03:00
Fatih Arslan ccbedaa032 printer: fix printing of lists 2015-10-25 19:09:22 +03:00
Fatih Arslan 5e525249f3 printer: fix assigning equal sign for multi keys 2015-10-25 18:59:29 +03:00
Fatih Arslan 69f125c80f fmt: initial working version of hclfmt 2015-10-25 18:45:54 +03:00
Fatih Arslan 94c0e1e8d4 printer: mess up input :) 2015-10-25 18:18:26 +03:00
Fatih Arslan d94e8e9409 hcl: add package comments 2015-10-25 18:14:16 +03:00
Fatih Arslan ad50ec5933 printer: rename methods to make it more readable 2015-10-25 18:10:34 +03:00
Fatih Arslan e947512362 printer: add spacewidth support 2015-10-25 18:02:40 +03:00
Fatih Arslan 0fc42b65df printer: implement file tests 2015-10-25 17:51:18 +03:00
Fatih Arslan 2ea5683566 printer: simplify indenting of objects 2015-10-25 16:13:06 +03:00
Fatih Arslan 4d7ec81122 printer: add newline after each object 2015-10-25 16:12:08 +03:00
Fatih Arslan 958093df59 printer: implement a working version 2015-10-25 16:08:09 +03:00
Fatih Arslan 5918e3592b printer: initial implementation. I'm still experimenting though 2015-10-25 01:23:50 +03:00
Fatih Arslan 71105156e2 parser: add Parse() and make it compatible with printer 2015-10-25 00:04:31 +03:00
Fatih Arslan de7241ebe5 ast: print unknown node type 2015-10-24 23:12:28 +03:00
Fatih Arslan a995361468 parser: collect comments 2015-10-24 23:11:03 +03:00
Fatih Arslan 6b5bd170f6 parser: fix all tests, comments are still WIP 2015-10-24 22:10:10 +03:00
Fatih Arslan 1a63f537eb scanner: negative float and int should be supported as well 2015-10-19 02:11:07 +03:00
Fatih Arslan 3c21f6b72b parser: simplify parsing object key even more and fix unscan 2015-10-19 02:01:33 +03:00
Fatih Arslan 17aa3f3c5a parser: add better ObjectKey parser 2015-10-19 01:30:14 +03:00
Fatih Arslan 9468aa324e parser: add official HCL tests, WIP 2015-10-18 23:25:17 +03:00
Fatih Arslan 393af546c0 parser: add TestObjectType 2015-10-18 23:19:56 +03:00
Fatih Arslan 1f47d675b9 parser: fix parser test 2015-10-18 22:51:10 +03:00
Fatih Arslan 0cf842255d parser: add list tests 2015-10-17 02:16:33 +03:00
Fatih Arslan 39f76a99eb parser: just return node :) 2015-10-17 01:48:38 +03:00
Fatih Arslan 0ed9465e4b parser: add support for normal and nested objects 2015-10-17 01:39:49 +03:00
Fatih Arslan 16d5eb5f08 parser: add support for object type 2015-10-17 01:14:40 +03:00
Fatih Arslan 4e690ec67d parser: add ListType support 2015-10-17 00:00:05 +03:00