Merge pull request #46 from keitahaga/examples

Fixed examples/keyval2.nim
This commit is contained in:
Araq 2011-08-02 12:55:56 -07:00
commit 7670466d43
3 changed files with 4 additions and 4 deletions

View file

@ -3,5 +3,5 @@ import pegs
for x in lines("myfile.txt"): for x in lines("myfile.txt"):
if x =~ peg"{\ident} \s* '=' \s* {.*}": if x =~ peg"{\ident} \s* '=' \s* {.*}":
echo "Key: ", matches[1], echo "Key: ", matches[0],
" Value: ", matches[2] " Value: ", matches[1]