Skip to content

Commit 69d27b9

Browse files
Ken KundertKen Kundert
authored andcommitted
add link to .NET NT implementation
1 parent a162d71 commit 69d27b9

File tree

8 files changed

+26
-24
lines changed

8 files changed

+26
-24
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
examples/access.nt
2+
.github/workflows/build.yaml.save
3+
24

35
# version info
46
.bump.cfg.nt

doc/basic_syntax.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ on the next line, which must be further indented.
5353
> first line of value 5
5454
> second line of value 5
5555
56-
Which is equivalent to the following JSON code:
56+
This is equivalent to the following JSON code:
5757

5858
.. code-block:: json
5959

doc/file_format.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ The *NestedText* format follows a small number of simple rules. Here they are.
188188
lists. They are somewhat constrained in the characters that they may
189189
contain; nothing is allowed that might be confused with the syntax
190190
characters used by the inline list or dictionary that contains it.
191-
Specifically, inline strings may not line-break white space such as newlines
192-
or any of the following characters: ``[``, ``]``, ``{``, ``}``, or ``,``.
193-
In addition, inline strings that are contained in inline dictionaries may
194-
not contain ``:``. Both leading and trailing white space is ignored with
195-
inline strings. This includes all non-line-break white space characters
196-
such as ASCII spaces and tabs, as well as the various Unicode white space
197-
characters.
191+
Specifically, inline strings may not include line-break white space
192+
characters such as newlines or any of the following characters: ``[``,
193+
``]``, ``{``, ``}``, or ``,``. In addition, inline strings that are
194+
contained in inline dictionaries may not contain ``:``. Both leading and
195+
trailing white space is ignored with inline strings. This includes all
196+
non-line-break white space characters such as ASCII spaces and tabs, as well
197+
as the various Unicode white space characters.
198198

199199
Both inline lists and dictionaries may be empty, and represent the only way
200200
to represent empty lists or empty dictionaries in *NestedText*. An empty

doc/minimal-nestedtext.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ describe to your users if you decide to use it for your application.
5757
structured data. It is intended to be easily entered, edited, or viewed by
5858
people. As such, the syntax is very simple and intuitive.
5959

60-
It organizes the data into a nested collection of lists and name-value
61-
pairs where the lowest level values are all strings. For example, a simple
60+
It organizes the data into a nested collection of lists and name-value pairs
61+
where the lowest level values are all simple text. For example, a simple
6262
collection of name-value pairs represented using:
6363

6464
.. code-block:: nestedtext

doc/related_projects.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ Official *NestedText* test suite. Also included as submodule in
2323
Implementations
2424
---------------
2525

26-
.NET
27-
""""
28-
29-
`NestedText <https://www.nuget.org/packages/NestedText>`_
30-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31-
32-
`.NET <https://dotnet.microsoft.com/>`_ implementation of *NestedText*.
33-
Supports :ref:`NestedText v3.7 <v3.7>`.
34-
35-
3626
Go
3727
""
3828

@@ -66,6 +56,16 @@ a compiled project, so it is significantly lighter in weight than
6656
<v3.0>`.
6757

6858

59+
.NET
60+
""""
61+
62+
`NestedText <https://www.nuget.org/packages/NestedText>`_
63+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64+
65+
`.NET <https://dotnet.microsoft.com/>`_ implementation of *NestedText*.
66+
Supports :ref:`NestedText v3.7 <v3.7>`.
67+
68+
6969
`@rmw/nestedtext <https://www.npmjs.com/package/@rmw/nestedtext>`_
7070
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7171

examples/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
def pytest_ignore_collect(path):
2-
components = str(path).split('/')
1+
def pytest_ignore_collect(collection_path):
2+
components = collection_path.parts
33
name = components[-1]
44
if name.startswith('deploy_') and name.endswith('.py'):
55
return True

nestedtext/nestedtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ def render_inline_scalar(self, obj, exclude, keys, values):
16221622
raise NotSuitableForInline from None
16231623
return value
16241624

1625-
# render content {{{3
1625+
# render value {{{3
16261626
def render_value(self, obj, keys, values):
16271627
level = len(keys)
16281628
error = None

tests/test_nestedtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ def de_dup(key, state):
19771977
output = nt.dumps(people, map_keys=keymap)
19781978
assert output == document
19791979

1980-
# withkey normalization
1980+
# with key normalization
19811981
def normalize_key(key, parent_keys):
19821982
return key.lower()
19831983

0 commit comments

Comments
 (0)