Kat Marchán
8de7df6eaa
formatting
2023-12-12 23:49:04 -08:00
Kat Marchán
7790505bf9
Merge branch 'main' into kdl-v2
2023-12-12 23:44:10 -08:00
Kat Marchán
fc1b59436a
add support for dedented multi-line strings and raw strings
2023-12-12 23:17:04 -08:00
Kat Marchán
49402ccb7b
allow BOM only in the first unicode scalar in a document
2023-12-12 22:51:52 -08:00
Kat Marchán
13799de32b
Allow whitespace in more places
...
Fixes: https://github.com/kdl-org/kdl/issues/355
2023-12-12 22:28:52 -08:00
Kat Marchán
c8488db13e
Make last semicolon optional for inline nodes
...
Fixes: https://github.com/kdl-org/kdl/issues/341
2023-12-12 22:21:13 -08:00
Kat Marchán
5a7b339ed4
Constrain code points to unicode scalar values
...
Fixes: https://github.com/kdl-org/kdl/issues/207
2023-12-12 22:10:26 -08:00
Kat Marchán
b42b6c80f0
Clarify that multiline comments are allowed after line continuations, per grammar
...
Fixes: https://github.com/kdl-org/kdl/issues/322
2023-12-12 21:57:57 -08:00
Kat Marchán
31fd7bd00a
Update JiK and XiK too
2023-12-12 21:43:35 -08:00
Kat Marchán
63feef70fe
Update schema spec
2023-12-12 21:39:21 -08:00
Kat Marchán
fada1fc1dd
Update KQL text, too
2023-12-12 21:37:13 -08:00
Kat Marchán
5e89c4550a
Update all examples to use most changes
2023-12-12 21:34:02 -08:00
Kat Marchán
2694146af4
# is just plain illegal now
2023-12-12 21:12:11 -08:00
Kat Marchán
85aa3a09ab
treat bare identifiers and strings in value locations ( #358 )
...
Fixes: https://github.com/kdl-org/kdl/issues/339
2023-12-12 21:03:30 -08:00
Kat Marchán
e6356d5a03
allow ,<> as identifier characters since they no longer need to be re… ( #352 )
...
* fix some confusion in grammar syntax, and actually specify the syntax itself
Fixes: https://github.com/kdl-org/kdl/issues/345
* allow ,<> as identifier characters since they no longer need to be reserved
* fix typo
* disallow more code points and outright ban certain ones from KDL documents altogether (#353 )
Fixes: https://github.com/kdl-org/kdl/issues/250
* `r` prefix is no longer required for raw strings (#354 )
Fixes: https://github.com/kdl-org/kdl/issues/337
2023-12-12 20:27:37 -08:00
Kat Marchán
99abeef6d3
fix some confusion in grammar syntax, and actually specify the syntax itself ( #351 )
...
Fixes: https://github.com/kdl-org/kdl/issues/345
2023-12-12 20:20:15 -08:00
Christopher Durham
eb55930264
Update formal grammar for KDL 2.0 ( #285 )
...
Fixes: https://github.com/kdl-org/kdl/issues/284
* Update formal grammar
* Update SPEC.md for KDL 2.0 preview
* Update SPEC.md
Co-authored-by: Christopher Durham <cad97@cad97.com>
---------
Co-authored-by: Tab Atkins Jr <jackalmage@gmail.com>
Co-authored-by: Kat Marchán <kzm@zkat.tech>
2023-12-10 17:44:55 -08:00
Kat Marchán
ef93a6b10c
wrap comments
2023-10-17 10:00:44 -07:00
Kat Marchán
7b7d57bf29
lead with a more complete example in the readme
2023-10-17 09:55:32 -07:00
sblinch
9f10522717
Add kdl-go to README.md ( #336 )
2023-10-17 09:23:57 -07:00
Tab Atkins-Bittner
0836df1c19
Restrict idents from looking like raw strings. Closes #200 , closes #204 , closes #241
2023-10-06 14:32:01 -07:00
Tab Atkins-Bittner
568c096465
Document the vertical tab addition.
2023-10-06 14:30:18 -07:00
Tab Atkins-Bittner
3b39e29fee
Add vertical tab to whitespace. Closes #331
2023-10-06 14:13:43 -07:00
Tab Atkins-Bittner
270c60ca9a
Revert "Allow single-line comments with nothing after them. Fixes #318"
...
This reverts commit 652590fad3 .
2023-10-06 14:07:29 -07:00
Tab Atkins-Bittner
54f5fc8025
Revert "Add vertical tab to whitespace characters. Fixes #331"
...
This reverts commit ef1bb689b0 .
2023-10-06 14:07:28 -07:00
Tab Atkins-Bittner
ef1bb689b0
Add vertical tab to whitespace characters. Fixes #331
2023-10-06 13:58:35 -07:00
Tab Atkins-Bittner
652590fad3
Allow single-line comments with nothing after them. Fixes #318
2023-10-06 13:56:03 -07:00
Jonathan
6fa99c2586
Add link to Go implementation ( #334 )
2023-09-26 12:18:51 -07:00
Evgeny
11d8e912fc
add Sublime Text support ( #326 )
2023-07-26 14:34:57 -07:00
Danielle Smith
09801faa93
add playground link to README.md ( #332 )
2023-06-30 15:06:31 -07:00
Tab Atkins Jr
f3e5ff6027
Rearrange the number production to put decimal at the end
...
While the grammar makes no statements about match order, parsers pretty universally test for decimal last, after the other number productions, because `0b010` (/etc) can look like a `0` followed by garbage. Matching this order can reduce confusion.
Closes #330 .
2023-05-30 14:13:46 -07:00
Evgeny
a75ca13c15
Fix a typo in SPEC.md ( #323 )
2023-05-25 12:09:47 -07:00
chee
a3d39e7749
Add link to common lisp implementation ( #319 )
2023-03-15 09:29:32 -07:00
Exidex
6feeccc491
Add Intellij IDEA plugin to README.md ( #312 )
2022-10-17 15:33:00 -07:00
Patitotective
6bf9b1c588
Update README.md ( #311 )
2022-10-13 09:13:03 -07:00
Lars Willighagen
0dc4a92a69
Replace use of non-defined 'tag' term ( #310 )
...
Fixes: https://github.com/kdl-org/kdl/issues/306
In the specifications of KQL and JiK, replace the
usage of 'tag' with 'type annotation', as that is
the term in the main KDL specification.
2022-10-10 13:25:25 -07:00
Lars Willighagen
06d1d67359
Add draft grammar for KQL 1.0.0 ( #303 )
...
* Add draft grammar for KQL 1.0.0
* Change whitespace in KQL grammar
* Update KQL grammar to use new operators
2022-10-09 12:04:10 -07:00
Bannerets
8d252133b7
Mention an OCaml implementation in the README ( #307 )
2022-10-03 09:14:53 -07:00
Aram Drevekenin
5253595c14
docs(readme): link to vim syntax plugin ( #305 )
2022-09-29 09:52:25 -07:00
Hannah Kolbeck
6bab316b0f
Remove credit from test suite README ( #304 )
2022-09-29 09:50:14 -07:00
Benjamin Kane
20d65edb7d
Add links to XML2KDL repo/online editor ( #301 )
...
Low effort KDLing should be easy :D
2022-09-23 09:08:39 -07:00
Nathan West
0b99021180
Improvements to string naming consistency ( #299 )
...
This PR modifies string descriptions in SPEC.md to use more consistent language throughout, with the primary intention of removing long descriptions like "a property key is either an identifier or a string". There are no semantic changes to KDL here.
2022-09-20 17:29:59 -07:00
Thomas Jollans
c8dd45a0f1
Mention ckdl in the README ( #296 )
2022-09-17 15:18:49 -07:00
Tab Atkins Jr
76d5dd542a
Editorial rephrasing; define empty array/object
...
Did an editorial pass over the document, rewriting most of the prose slightly.
Caught a place or two that was still referring to tags for object keys.
Sole non-editorial change was adding the final ambiguous case - a completely empty node. These are required to have an `(array)` or `(object)` tag to be valid.
2022-09-02 15:02:05 -07:00
Bram Gotink
fb80016011
Make JSON-in-KDL more minimalistic ( #293 )
2022-09-02 13:54:08 -07:00
Bram Gotink
d437cf228b
Add test for empty single-line comment ( #292 )
2022-09-02 07:37:10 -07:00
Hannah Kolbeck
0a4a14d87a
Add escaped whitespace note to v2 changelog ( #291 )
...
* Add escaped whitespace note to v2 changelog
* Make changelog note on escaping whitespace more detailed
2022-09-01 13:05:53 -07:00
Nathan West
825ff2c17d
Add escaped whitespace to KDL strings ( #290 )
...
* Add escaped whitespace to KDL spec
* Add test cases for escaped whitespace
* Spelling error
2022-08-31 21:49:01 -07:00
Bram Gotink
337bd1bccf
Update expected output of test with changed input ( #289 )
2022-08-30 10:44:44 -07:00
Bram Gotink
ffeea8e5aa
Use forward slash in solidus-escape test ( #288 )
2022-08-30 08:11:51 -07:00