Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test space in the middle of a key #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ new_ec_test(spaces_after_section_name whitespace.in test9.c "^key=value[ \t\n\r]
new_ec_test_multiline(spaces_before_middle_property_ML whitespace.in test10.c
"key1=value1[ \t]*[\n\r]+key2=value2[ \t]*[\n\r]+key3=value3[ \t\n\r]*")

# test spaces in the middle of a key
new_ec_test(spaces_in_middle_key whitespace.in test11.c "ke y=value[ \t\n\r]*")

# Tests for comment parsing

# test comments ignored before properties
Expand Down
4 changes: 4 additions & 0 deletions parser/whitespace.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ key=value
key1=value1
key2=value2
key3=value3

; space in the middle of a key
[test11.c]
ke y=value