Skip to content

Commit

Permalink
Added escape char for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Feb 26, 2013
1 parent 905db7b commit 0b33768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytoml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self):
basic_int = Optional("-") + ("0" | Word(nums))

types = dict(
string = QuotedString("\""),
string = QuotedString("\"", escChar="\\"),
integer = Combine(basic_int),
float = Combine(basic_int + "." + Word(nums)),
datetime = Regex(r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z"),
Expand Down

0 comments on commit 0b33768

Please sign in to comment.