Commit Graph

336 Commits

Author SHA1 Message Date
Tab Atkins-Bittner 63090831cd More explicitly use and reference a cut point, rather than infallibility. 2024-12-12 10:17:03 -08:00
Tab Atkins-Bittner b5e8aaf035 Make the raw-string productions non-greedy, and describe the infallibility. Closes #415 2024-12-11 18:13:02 -08:00
Tab Atkins Jr. ca2bd45a66
typo
Accidental lingering `)` in single-line-raw-string-body, with no matching `(` to pair with.
2024-12-11 16:51:38 -08:00
Kat Marchán 1a6b17b0ae
Minor housekeeping around README 2024-12-11 00:24:41 -08:00
Kat Marchán ace7ec7a96
Release 2.0.0-draft.7 2024-12-10 23:31:07 -08:00
Kat Marchán 171bc71f42
Allow node-space after slashdash and add a bunch more slashdash tests (#427)
Fixes: https://github.com/kdl-org/kdl/issues/426
2024-12-10 20:43:58 -08:00
Thomas Jollans 75a0869a6c
Clarify raw single-line string grammar (#425) 2024-12-10 16:45:35 -08:00
Tab Atkins-Bittner 91f7ec05fa Add a lint for test expectations that don't end in a newline. 2024-12-10 16:03:05 -08:00
Tab Atkins Jr. a60d27c99d
KDL documents always end in a newline
In particular, other empty-document tests have an expected result containing one newline, like slashdash_full_node
2024-12-10 15:55:21 -08:00
Kat Marchán ec7d679e88
Add Camping to Used By section 2024-12-10 14:32:50 -08:00
Kat Marchán 4dd6ebbbfe
Add 'Used By' section to README
Fixes: https://github.com/kdl-org/kdl/issues/408
2024-12-09 02:05:45 -08:00
Kat Marchán 373e0ed973
Pull in v1 spec and add some compatibility notes (#424)
Fixes: https://github.com/kdl-org/kdl/issues/420
2024-12-09 01:27:07 -08:00
Thomas Jollans ee41a76357
Additional test cases for slashdash and multi-line strings (#422) 2024-12-08 09:32:21 -08:00
Thomas Jollans 831ecc1d52
Allow quotes in multi-line strings (#419)
Fixes: https://github.com/kdl-org/kdl/issues/415
2024-12-08 01:07:31 -08:00
Tab Atkins Jr. 29ae90e9f5
Indicate expected-fail tests with a _fail suffix. Fixes #365 (#418)
* Indicate expected-fail tests with a _fail suffix. Fixes #365

* Update the README with directions for formatting failing tests

* Add a lint for failing and orphaned tests.
2024-12-06 15:06:28 -08:00
Tab Atkins Jr. bf40df5581
Make multi-line a top-level string type; demote Raw String. (#417) 2024-12-06 15:06:07 -08:00
Kat Marchán eaa6c40693
fix more multiline string tests that were missed before 2024-12-04 13:08:37 -08:00
Kat Marchán 5971e61eda
fix up some multiline string tests 2024-12-04 00:48:43 -08:00
Kat Marchán 4334a6d552
Release 2.0.0 draft 6 2024-12-04 00:04:21 -08:00
Kat Marchán e7b5ec6bf9
unambiguous multiline strings (#414)
Fixes: https://github.com/kdl-org/kdl/issues/413
2024-12-03 23:44:40 -08:00
Kat Marchán e477f32f05
a few clarifications and wording tweaks to the spec 2024-12-03 23:06:58 -08:00
Emi 40aac6602e
Normalize space in expected output of unicode_silly (#412) 2024-12-02 00:06:46 -08:00
Emi 073d07748a
[tests] [bug] test unicode_silly's input data is a .kd file (#410) 2024-12-01 15:26:00 -08:00
Kat Marchán 1f050633ad
slight grammar tweaks 2024-12-01 01:16:06 -08:00
Kat Marchán 8b2a019998
merge kdl-v2 branch into main 2024-11-29 00:11:01 -08:00
Kat Marchán 8aa4c15758
prep readme for merging to main 2024-11-29 00:01:53 -08:00
Kat Marchán 76a1de517b
Release 2.0.0 draft 5 2024-11-28 23:09:31 -08:00
Kat Marchán 90e22bc789
[v2] more predictable slashdash (#407)
Fixes: https://github.com/kdl-org/kdl/issues/401
2024-11-28 22:53:42 -08:00
Kat Marchán 1588b1f5fd
get rid of syntactically significant unicode equals signs (#400)
Fixes: #399
2024-11-28 22:39:19 -08:00
Kat Marchán fa3050ccc0
add 128-bit ints 2024-11-28 00:06:15 -08:00
Kat Marchán 93c4400a96
clarify that numbers don't need to be IEEE 754 floats 2024-11-27 01:02:02 -08:00
Samuel Giddins d8d583a45e
Create test for unterminated_empty_node (#405) 2024-11-07 11:28:06 -08:00
Kat Marchán 1e924bcc7f
clarifications around multiline prefixes 2024-10-03 20:53:01 -07:00
Thomas Jollans bcfb3321c4
Tweak rules for escaped whitespace in multi-line strings (#392)
These rules are a bit more liberal than what was described previously,
but I think they're clearer and more consistent:

 * This way, strings have the (I think intuitive) property that, when
   you 'blindly' remove the whitespace escapes, the meaning is
   unchanged.
 * If you take any valid single-line string and add a newline character
   and some indentation both at the start and the end, the string will
   still be valid (and unchanged) - previously, this was not necessarily
   the case if there were whitespace escapes.
2024-06-13 11:55:44 -07:00
Romain Delamare 6a77436e09
kql: only allow top() at start of selector (#388) 2024-04-17 12:41:50 -07:00
Kat Marchán fa204cec62
unicode was not defined in grammar 2024-04-02 21:36:25 -07:00
Kat Marchán c9134e3c16
change escape resolution order again 2024-04-02 00:58:25 -07:00
Kat Marchán bea0f67685
turn it around: escapes should be resolved _before_ dedenting 2024-04-01 16:53:33 -07:00
Kat Marchán fa9d30388c
remove duplication of keyword-number 2024-04-01 16:48:38 -07:00
Kat Marchán d064bc9026
clarify multi-line strings and escapes interaction 2024-04-01 14:37:52 -07:00
Kat Marchán 281de7e977
review fixes 2024-04-01 14:26:44 -07:00
Dani Smith de1dbd2c33
Add Lua implementation (#385) 2024-03-28 11:39:12 -07:00
Dani Smith 4bec08b70d
add swift and crystal to README (#384) 2024-03-15 21:27:53 -07:00
Kat Marchán d0b30c3f35
Update SPEC.md
Co-authored-by: Bannerets <comonoid@protonmail.com>
2024-03-05 12:47:07 -08:00
Kat Marchán aeb41cc7d7
Update examples/ci.kdl
Co-authored-by: Bannerets <comonoid@protonmail.com>
2024-03-05 12:46:04 -08:00
Kat Marchán 2de2ddc708
Update README.md
Co-authored-by: Bannerets <comonoid@protonmail.com>
2024-03-05 12:45:48 -08:00
Kat Marchán b294e9cb5a
Update README.md
Co-authored-by: Bannerets <comonoid@protonmail.com>
2024-03-05 12:45:30 -08:00
Bram Gotink 9e7b958f0c
Ensure spec allows slashdash right after node separator (#382) 2024-02-18 13:18:50 -08:00
Bram Gotink 9132a96e56
Quote identifiers that contain an equals sign (#381) 2024-02-18 13:15:58 -08:00
Kat Marchán dadcfdf2ae
Update tests/test_cases/expected_kdl/multiline_raw_string_indented.kdl
Co-authored-by: Dani Smith <danini@hey.com>
2024-02-15 12:03:25 -08:00