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

- LaTeX table support

parent 3a8fefd2
...@@ -7,15 +7,16 @@ ...@@ -7,15 +7,16 @@
bibliography = { preamble | comment | entry } bibliography = { preamble | comment | entry }
preamble = "@Preamble{" /"/ PREAMBLE /"/~ §"}" preamble = "@Preamble{" /"/ pre_code /"/~ §"}"
comment = "@Comment{" COMMENT §"}" pre_code = { /[^"%]+/ | /%.*\n/ }
entry = /@/ entry_type "{" KEY { "," NAME §"=" field_content } §"}"
field_content = /\{/ content §"}" | PLAIN_CONTENT comment = "@Comment{" text §"}"
content = { /(?:\\.|[^\\{}])*/ ( /\{/ content /\}/ ) }
PREAMBLE = /[^"]*/ entry = /@/ type "{" key { "," field §"=" content } §"}"
COMMENT = /[^}]*/ type = /\w+/
KEY = /[^,}]*/~ key = /[^ \t\n,%]+/~
NAME = /\w+/~ field = /\w+/~
PLAIN_CONTENT = /[^,}]*/ content = "{" text "}" | plain_content
\ No newline at end of file
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