small fixes

This commit is contained in:
Brandon Taylor 2017-07-30 12:54:45 -04:00
parent d4d33933d4
commit 687aea8d99
1 changed files with 8 additions and 6 deletions

View File

@ -87,6 +87,8 @@ This is a simple, input parser for BibTex. I had trouble finding a standard
specification, but I've included several features of real BibTex. specification, but I've included several features of real BibTex.
```jldoctest ```jldoctest
julia> using BibTeX
julia> result = parse_bibtex(""\" julia> result = parse_bibtex(""\"
@comment blah blah @comment blah blah
@string{short = long} @string{short = long}
@ -98,23 +100,23 @@ julia> result = parse_bibtex(""\"
""\"); ""\");
julia> result["b"]["type"] julia> result["b"]["type"]
a "a"
julia> result["b"]["c"] julia> result["b"]["c"]
c c "c c"
julia> result["b"]["d"] julia> result["b"]["d"]
d d "d d"
julia> result["b"]["e"] julia> result["b"]["e"]
f short "f short"
julia> parse_bibtex("@book") julia> parse_bibtex("@book")
Expected { on line 1 ERROR: Expected { on line 1
[...] [...]
julia> parse_bibtex("@book@") julia> parse_bibtex("@book@")
Expected { on line 1 ERROR: Expected { on line 1
[...] [...]
``` ```
""" """