Mitchell Hashimoto
|
0704c168e1
|
hcl/printer: make boolean logic one line
|
2015-11-07 15:15:40 -08:00 |
|
Mitchell Hashimoto
|
b24dfd1bb1
|
hcl/printer: output an equal sign only if we had one originally
|
2015-11-07 15:13:05 -08:00 |
|
Mitchell Hashimoto
|
3bac6be959
|
json: make root look the same as HCL root
|
2015-11-07 11:33:31 -08:00 |
|
Mitchell Hashimoto
|
54464e89f1
|
allow decoding into slices that are empty
|
2015-11-07 11:30:53 -08:00 |
|
Mitchell Hashimoto
|
9ca9a4e1c3
|
hcl/ast: simplify API
|
2015-11-07 10:25:22 -08:00 |
|
Mitchell Hashimoto
|
32411ba6af
|
hcl/ast: Get should return a list
|
2015-11-07 09:52:50 -08:00 |
|
Mitchell Hashimoto
|
8754ac7343
|
decode bool typed properly
|
2015-11-07 00:29:51 -08:00 |
|
Mitchell Hashimoto
|
3e6a61bda5
|
decoder allows non-root files
|
2015-11-07 00:27:57 -08:00 |
|
Mitchell Hashimoto
|
671ef91008
|
tests... pass
|
2015-11-07 00:21:44 -08:00 |
|
Mitchell Hashimoto
|
e370e34aeb
|
down to one failing test
|
2015-11-07 00:12:04 -08:00 |
|
Mitchell Hashimoto
|
5aaa3e75b9
|
hcl/parser: scan errors should come through as well
|
2015-11-06 23:42:45 -08:00 |
|
Mitchell Hashimoto
|
98b069abb0
|
json: fix more errors
|
2015-11-06 23:42:40 -08:00 |
|
Mitchell Hashimoto
|
23d42714de
|
json: fix parse errors
|
2015-11-06 23:33:40 -08:00 |
|
Mitchell Hashimoto
|
6cc18eb70b
|
hcl/scanner: actually scan all things with exponents as floats
|
2015-11-06 23:33:25 -08:00 |
|
Mitchell Hashimoto
|
9501fc5ad0
|
decoder work
|
2015-11-06 23:12:15 -08:00 |
|
Mitchell Hashimoto
|
0c18c66fff
|
hcl/ast: ObjectList.Prefix
|
2015-11-06 23:12:08 -08:00 |
|
Mitchell Hashimoto
|
7996653560
|
hcl/strconv: more error cases
|
2015-11-06 23:02:59 -08:00 |
|
Mitchell Hashimoto
|
c8f28b7b42
|
hcl/strconv: custom unquote logic
|
2015-11-06 23:00:37 -08:00 |
|
Mitchell Hashimoto
|
68e40f3944
|
hcl/token: Value should unquote string
|
2015-11-06 22:35:07 -08:00 |
|
Mitchell Hashimoto
|
16ce140272
|
hcl/token: add Value for IDENT
|
2015-11-06 18:29:48 -08:00 |
|
Mitchell Hashimoto
|
798e1c6c05
|
hcl/scanner: allow hyphens in idents
|
2015-11-06 17:56:57 -08:00 |
|
Mitchell Hashimoto
|
22bdcc2db1
|
hcl/scanner: scan interpolations properly
|
2015-11-06 17:55:07 -08:00 |
|
Mitchell Hashimoto
|
96291d2dbe
|
hcl/token: add Value to get the rich type value
|
2015-11-06 17:28:38 -08:00 |
|
Mitchell Hashimoto
|
bfa1019160
|
json: this might work
|
2015-11-06 16:48:00 -08:00 |
|
Mitchell Hashimoto
|
5c5e6206ce
|
remove hclnew
|
2015-11-06 16:18:55 -08:00 |
|
Mitchell Hashimoto
|
c1090aad4a
|
hcl: delete old parser
|
2015-11-06 16:18:44 -08:00 |
|
Mitchell Hashimoto
|
d7c35808a8
|
move hclnew to hcl
|
2015-11-06 16:04:20 -08:00 |
|
Mitchell Hashimoto
|
a1fbdda609
|
Add 'hclnew/' from commit '2e450506d2b521ae348f9bb97d1b07800177b83f'
git-subtree-dir: hclnew
git-subtree-mainline: 4de51957ef
git-subtree-split: 2e450506d2
|
2015-11-06 16:00:53 -08:00 |
|
Fatih Arslan
|
2e450506d2
|
Merge pull request #4 from fatih/align-attributes
printer: aligned adjacent attributes, closes #3
|
2015-11-04 16:29:11 +02:00 |
|
Fatih Arslan
|
b0913285c3
|
printer: update golden example
|
2015-11-04 17:27:17 +03:00 |
|
Fatih Arslan
|
6f84551a04
|
printer: aligned adjacent attributes, closes #3
|
2015-11-04 17:21:17 +03:00 |
|
Fatih Arslan
|
59fd9d5a00
|
printer: indent must be two spaces, closes #2
|
2015-11-04 17:07:47 +03:00 |
|
Fatih Arslan
|
68aca194ab
|
ast: we don't need zero node
Also trigger a build on Travis
|
2015-11-03 02:46:13 +03:00 |
|
Fatih Arslan
|
079bc726dd
|
Add .travis.yml file
|
2015-11-03 02:41:11 +03:00 |
|
Fatih Arslan
|
8fb44d8c31
|
README.md: add note about development case
|
2015-11-03 02:21:28 +03:00 |
|
Fatih Arslan
|
1ae9933e7d
|
printer: only align list items if items have comments
|
2015-11-01 03:29:23 +03:00 |
|
Fatih Arslan
|
c73430cb1e
|
printer: align comments in lists
|
2015-11-01 03:23:33 +03:00 |
|
Fatih Arslan
|
566c59bf69
|
printer: fix newline for standalone comments
|
2015-11-01 01:29:26 +03:00 |
|
Fatih Arslan
|
858f6116bf
|
printer: complex.golden is now fixed
|
2015-11-01 01:28:11 +03:00 |
|
Fatih Arslan
|
66daded6ac
|
printer: finalize comment printing, yay \o/
|
2015-11-01 01:24:50 +03:00 |
|
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 |
|