Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
DHParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
badw-it
DHParser
Commits
bd0e6011
Commit
bd0e6011
authored
Aug 24, 2017
by
Eckhart Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- LaTeX table support
parent
3a8fefd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
examples/BibTeX/BibTeX.ebnf
examples/BibTeX/BibTeX.ebnf
+11
-10
No files found.
examples/BibTeX/BibTeX.ebnf
View file @
bd0e6011
...
...
@@ -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 /\}/ | /(?=%)/~ }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment