Commit bd0e6011 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- LaTeX table support

parent 3a8fefd2
......@@ -7,15 +7,16 @@
bibliography = { preamble | comment | entry }
preamble = "@Preamble{" /"/ PREAMBLE /"/~ §"}"
comment = "@Comment{" COMMENT §"}"
entry = /@/ entry_type "{" KEY { "," NAME §"=" field_content } §"}"
preamble = "@Preamble{" /"/ pre_code /"/~ §"}"
pre_code = { /[^"%]+/ | /%.*\n/ }
field_content = /\{/ content §"}" | PLAIN_CONTENT
content = { /(?:\\.|[^\\{}])*/ ( /\{/ content /\}/ ) }
comment = "@Comment{" text §"}"
PREAMBLE = /[^"]*/
COMMENT = /[^}]*/
KEY = /[^,}]*/~
NAME = /\w+/~
PLAIN_CONTENT = /[^,}]*/
\ No newline at end of file
entry = /@/ type "{" key { "," field §"=" content } §"}"
type = /\w+/
key = /[^ \t\n,%]+/~
field = /\w+/~
content = "{" text "}" | plain_content
plain_content = { /[^,%]+/ | /(?=%)/~ }
text = { /(?:\\\{|\\\}|[^}%])+/~ | /\{/ text /\}/ | /(?=%)/~ }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment