Commit Graph

358 Commits

Author SHA1 Message Date
Kat Marchán da4e7d4dde
add vertical tab change test 2024-12-21 17:58:58 -08:00
Evgeny d1022ae510
fix: move vertical tab to the line-breaking whitespace to match Unicode (#446) 2024-12-21 17:57:45 -08:00
eilvelia 998a2ecc87
Fix a changelog line erroneously truncated in #444 (#445) 2024-12-21 14:18:15 -08:00
Evgeny a15818bd45
Add an optional version marker (#444)
* Add version marker to the grammer

* Add version marker to the Changelog

* Update SPEC.md

Co-authored-by: eilvelia <hi@eilvelia.cat>

* add a mandatory newline after the version marker

* add mandatory space between version number

---------

Co-authored-by: eilvelia <hi@eilvelia.cat>
2024-12-21 12:32:56 -08:00
eilvelia da5cbf5984
Add tests for mandatory whitespace between arguments or properties (#442) 2024-12-21 10:46:30 -08:00
eilvelia 8bd159528f
Always escape \ inside single quotes in the grammar text (#441)
to match the other uses of it and the metalanguage description below
2024-12-21 10:45:04 -08:00
Thomas Jollans 23918bd55d
Make line-space a superset of node-space (#440)
* Allow escline everywhere

* escline tests
2024-12-17 09:47:54 -08:00
Thomas Jollans 69067719c7
More tests for backslash behaviour (#438)
* More tests for baskslash behaviour

* Incorrect example of escaped final newline

* Test with non-literal indent
2024-12-17 09:47:37 -08:00
Bram Gotink b9ddb52e60
reword interaction multiline + whitespace escape (#439) 2024-12-16 15:10:38 -08:00
Bram Gotink 813a44b6f8
add extra javascript implementation (#437) 2024-12-16 10:17:14 -08:00
Kat Marchán a3a6742ec3
Back out "fix multiline string tests"
This backs out commit 0c5604b462.
2024-12-15 17:49:21 -08:00
eilvelia c3bb12c098
grammar: fix disallowed-keyword-identifiers and string-character (#436) 2024-12-15 17:41:43 -08:00
Kat Marchán 0c5604b462
fix multiline string tests 2024-12-15 15:30:44 -08:00
eilvelia ecb34f2cd6
Remove nonexistent equals-sign from the grammar (#435) 2024-12-15 10:04:13 -08:00
Kat Marchán 83f4c374b9
Add unicode-space to raw string 2024-12-15 02:24:28 -08:00
Kat Marchán 65a06289b4
fix grammar for multiline quoted strings to allow escaped whitespace on closing line 2024-12-15 02:07:16 -08:00
Kat Marchán 5d6f755832
Release KDL 2.0.0 2024-12-14 20:00:52 -08:00
Kat Marchán 0e58f61b18
Release 2.0.0-draft.8 2024-12-14 17:23:09 -08:00
Tommy Williams edbdab2891
Update README.md (#383)
swap neovim integration link 
from tree-sitter project to the specific language grammar
2024-12-12 14:58:51 -08:00
Thomas Jollans 7aa01a21b7
Clarify spec for whitespace-only lines in multiline strings (#433) 2024-12-12 14:47:39 -08:00
Thomas Jollans b82c924013
More tests for whitespace in multi-line strings (#432)
* More tests for whitespace in multi-line strings

* replace \r\n with \n in slashdash_newline_before_node.kdl
2024-12-12 13:15:04 -08:00
Tab Atkins Jr. d1ceb44f40
Make the raw-string productions non-greedy, and describe the infallibility (#430)
* Make the raw-string productions non-greedy, and describe the infallibility. Closes #415

* More explicitly use and reference a cut point, rather than infallibility.
2024-12-12 11:08:50 -08:00
Kat Marchán 717e86cb1c
went over tests and tweaked a few things (#431) 2024-12-11 19:45:25 -08:00
Tab Atkins Jr. ebef8751c0
fix multiline_string_whitespace_only, closes #429
ws-only lines don't contribute *any* content to the string (beyond their existence as a newline)
2024-12-11 18:16:00 -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