Skip to content

Commit

Permalink
Temporary fix on paragraph and paragraphInline usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ReMinoer committed Jan 12, 2018
1 parent c44fab8 commit 8309023
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions DashParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,35 @@ public static int WhiteSpaceSize(string whiteSpace) {

parse:
NEWLINE*
( (documentTitle NEWLINE*)+
| paragraph (NEWLINE | WS? EOF) NEWLINE*
)?
(documentTitle NEWLINE+)*
(
( commentBlock
| commentInline
| headerMode
| extensionMode
| dashExtensionMode
| modeClose
| paragraphInline
| ( redirection
| note
| media
| paragraph
)
(NEWLINE | WS? EOF)
)
NEWLINE*
)
(
( commentBlock
| commentInline
| headerMode
| extensionMode
| dashExtensionMode
| modeClose
| paragraphInline
| ( redirection
| note
| media
| paragraphInline
| NEWLINE paragraph
)
(NEWLINE | WS? EOF)
Expand Down

0 comments on commit 8309023

Please sign in to comment.