Commit Graph

1695 Commits

Author SHA1 Message Date
Mike Farah
aaf805d893 Added checksum in bsd format 2023-08-11 13:51:10 +10:00
dependabot[bot]
ba1d5c1a84
Bump golang.org/x/net from 0.13.0 to 0.14.0 (#1751)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 13:50:00 +10:00
dependabot[bot]
1c4f92ecd1
Bump golang.org/x/text from 0.11.0 to 0.12.0 (#1752)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 12:57:12 +10:00
dependabot[bot]
804b204f3c
Bump golang from 1.20.7 to 1.21.0 (#1753)
Bumps golang from 1.20.7 to 1.21.0.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 12:57:02 +10:00
Kim Alvefur
d302d75c77
Implement basic Lua output support (#1745)
* Implement basic Lua output support

Ref #1700

Basic but working serialization to Lua tables.

* Escape larger set of characters in Lua output

Started with a minimum of replacements, this should be more complete,
tho not all substitutions are strictly required in Lua.

* Print simple keys unquoted in Lua output

String keys that satisfy the requirements for variable names can be used
as keys without quotes in tables.

* Quote Lua keywords in table keys

Keywords are not valid as unquoted keys, thus must be quoted

* Make output of unquoted Lua table keys optional

Generally safer and simpler to not do it.

* Hook up settings for Lua output

* Allow special characters in Lua prefix and suffix

--lua-suffix='});^M' didn't work, so taking this approach instead

* Panic on unhandled YAML Kind in Lua encoder

* Handle YAML case varied booleans in Lua encoder

* Handle special-case numbers in Lua encoder

* Reject unhandled scalar Tags in Lua encoder

* Add note about how Lua nil is unsuitable as table key

Could add some context tracking in the future to allow rejecting nil in
a table key context.

* Return error instead of panic in Lua encoder

* Add initial test for Lua encoder

Boilerplate mostly copied from toml_test.go

* Additional Lua output tests

* Generate Lua encoder documentation

Mostly just for the boilerplate

* 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.

* Implement indentation in in Lua output

* Respect string Style in Lua encoder

Lua has 'single', "double" and [[ long ]] strings.

* Expand Lua examples

* Output line comments in Lua output

* Implement Lua globals output mode
2023-08-11 12:56:49 +10:00
dependabot[bot]
9b4082919b
Bump golang from 1.20.6 to 1.20.7 (#1749)
Bumps golang from 1.20.6 to 1.20.7.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 13:52:57 +10:00
dependabot[bot]
1d611f04fb
Bump golang.org/x/net from 0.12.0 to 0.13.0 (#1750)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 13:52:40 +10:00
dependabot[bot]
1dee08aa38
Bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 (#1732)
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.8 to 2.0.9.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml)
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.8...v2.0.9)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 13:28:05 +10:00
dependabot[bot]
a68be7debf
Bump golang from 1.20.5 to 1.20.6 (#1725)
Bumps golang from 1.20.5 to 1.20.6.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 08:52:19 +10:00
Mike Farah
0b34c9a00d Bumping version 2023-07-12 12:32:14 +10:00
Mike Farah
9cb0918206 Release notes 2023-07-12 12:32:04 +10:00
dependabot[bot]
dde183386c
Bump golang.org/x/net from 0.11.0 to 0.12.0 (#1719)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12 12:27:51 +10:00
Mike Farah
0f82fb7fba Adding more tests 2023-06-20 11:25:50 +10:00
Mike Farah
b3d9bb77fe Merge branch 'master' into generic_ast 2023-06-20 10:17:00 +10:00
dependabot[bot]
b762da38f0
Bump golang.org/x/net from 0.10.0 to 0.11.0 (#1695)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:57:29 +10:00
dependabot[bot]
cb521fd05a
Bump golang from 1.20.4 to 1.20.5 (#1690)
Bumps golang from 1.20.4 to 1.20.5.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:39:39 +10:00
dependabot[bot]
22ad68d142
Bump golang.org/x/text from 0.9.0 to 0.10.0 (#1696)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:39:08 +10:00
Mike Farah
37489aef14 Removed unwrap doc 2023-06-07 10:45:42 -07:00
Mike Farah
db8dddd2a9 Comment processing fixes 2023-06-06 13:34:44 -07:00
Mike Farah
f7c057b167 Comment processing fixes 2023-06-06 13:33:16 -07:00
Mike Farah
49b8eafaf5 Comment processing fixes 2023-06-06 12:10:28 -07:00
Mike Farah
584ec998bc Unit tests pass! 2023-06-06 11:06:23 -07:00
Mike Farah
b2415f2ca5 Drop document type 2023-06-05 15:27:59 -07:00
Mike Farah
28909bbc5a Recurse doc problem 2023-06-05 14:46:59 -07:00
Mike Farah
fd67748078 Fixed styling + delete issue 2023-05-30 15:05:28 +10:00
Mike Farah
f6c3fab309 Fixed key issue 2023-05-30 11:58:41 +10:00
Mike Farah
d17216de3f Fixed group by issue 2023-05-30 11:39:25 +10:00
Mike Farah
d033ad570e Fixed create map issue 2023-05-30 11:34:31 +10:00
Mike Farah
82f717226c Fixed traverse issue 2023-05-30 08:46:51 +10:00
Mike Farah
d933c00904 Merge branch 'master' into generic_ast 2023-05-28 14:22:48 +10:00
dependabot[bot]
845d4ae389
Bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8 (#1673)
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml)
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.7...v2.0.8)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-28 12:31:29 +10:00
Mike Farah
fcc04823ca Added docs on base64 only working with utf8 content 2023-05-23 15:38:08 +10:00
Mike Farah
5950329e2c Added docs on yes/no being strings in yaml spec 1.2 2023-05-23 15:35:39 +10:00
Mike Farah
5ef537f3fd Bumping version 2023-05-23 13:27:28 +10:00
Mike Farah
f7fc4edce2 Preparing release notes 2023-05-23 13:26:50 +10:00
dependabot[bot]
af177f9605
Bump golang.org/x/net from 0.9.0 to 0.10.0 (#1667)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/net/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 13:19:29 +10:00
Mike Farah
d9357859ed use addChild methods 2023-05-09 13:51:21 +10:00
Mike Farah
0ca8a13e36 calculate document,filename and fileindex by parent 2023-05-05 15:19:58 +10:00
Mike Farah
68df67f550 wip 2023-05-05 14:13:18 +10:00
Mike Farah
cde32c156b fixed entries op 2023-05-04 19:46:35 +10:00
Mike Farah
4921302c28 merged from master 2023-05-04 19:27:37 +10:00
Mike Farah
9ba85a0a46 fixed json encode/decode 2023-05-04 19:22:33 +10:00
Mike Farah
4d50b001d1 Added test for null array json example 2023-05-04 14:48:57 +10:00
Arthur Fritz Santiago
d14eaa9b49
fix: runtime error: invalid memory address or nil pointer dereference (#1649) 2023-05-04 14:43:48 +10:00
dependabot[bot]
91f47ff307
Bump golang from 1.20.3 to 1.20.4 (#1658)
Bumps golang from 1.20.3 to 1.20.4.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 14:28:55 +10:00
Giorgio Gallo
80b42b81fd
Implement shell output format (#1645)
* fix typo in a comment

* implement shell output format

* fix a typo

* add two test cases, have source uses ascii only

* add integration tests and documentation

* add fixes after code revieew
2023-05-04 11:06:56 +10:00
Mike Farah
e3ccd05a00 wip - rabbit hole :/ 2023-05-02 15:07:04 +10:00
Mike Farah
42843763ca wip - rabbit hole :/ 2023-05-02 14:07:59 +10:00
Mike Farah
cd50b35787 getting closer 2023-04-17 17:23:48 +10:00
Mike Farah
ee8cc90307 getting closer 2023-04-17 16:20:00 +10:00