Skip to content

Commit

Permalink
Add some comments for clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Nov 18, 2021
1 parent 576db85 commit 8baf830
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/valid/string/multiline.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# NOTE: this file includes some literal tab characters.

multiline_empty_one = """"""

# A newline immediately following the opening delimiter will be trimmed.
multiline_empty_two = """
"""

# \ at the end of line trims newlines as well; note that last \ is followed by
# two spaces, which are ignored.
multiline_empty_three = """\
"""
multiline_empty_four = """\
Expand Down Expand Up @@ -33,6 +38,7 @@ whitespace-after-bs = """\
no-space = """a\
b"""

# Has tab character.
keep-ws-before = """a \
b"""

Expand Down
5 changes: 5 additions & 0 deletions tests/valid/string/raw-multiline.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Single ' should be allowed.
oneline = '''This string has a ' quote character.'''

# A newline immediately following the opening delimiter will be trimmed.
firstnl = '''
This string has a ' quote character.'''

# All other whitespace and newline characters remain intact.
multiline = '''
This string
has ' a quote character
Expand Down

0 comments on commit 8baf830

Please # to comment.