2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-26 06:42:25 +00:00

Allow top-level scalars

This commit is contained in:
Joel de Guzman
2012-01-17 10:46:32 +08:00
parent 6a259dfb7a
commit 43534ccb24
6 changed files with 34 additions and 20 deletions

View File

@@ -97,8 +97,8 @@ success:
- "Sammy Sosa completed another fine season with great stats.\n 63 Home Runs\n0.288 Batting Average What a year!\n"
- {accomplishment : "Mark set a major league home run record in 1998.\n", name : "Mark McGwire", stats : "65 Home Runs\n0.278 Batting Average\n"}
- {quoted : " # not a 'comment'.", single : "\"Howdy!\" he cried.", tie-fighter : "|\\-*-/|", unicode : "Sosa did fine."}
- ["Fun with \\\" \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A"]
- ["Mark McGwire's year was crippled by a knee injury."]
- "Fun with \\\" \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A"
- "Mark McGwire's year was crippled by a knee injury."
C:\dev\yaml_spirit\test\test_files>C:\dev\compile\parse_yaml_test.exe C:\dev\yaml_spirit\test\test_files\yaml_block_array1.yaml
success:

View File

@@ -107,13 +107,13 @@ quoted: ' # not a ''comment''.'
tie-fighter: '|\-*-/|'
---
- "Fun with \\\" \a \b \e \f \
\n \r \t \v \0 \
\ \_ \N \L \P \
\x41 \u0041"
"Fun with \\\" \a \b \e \f \
\n \r \t \v \0 \
\ \_ \N \L \P \
\x41 \u0041"
---
- Mark McGwire's
Mark McGwire's
year was crippled
by a knee injury.