Merge branch 'paragraph_priotity_tests'

This commit is contained in:
Tom Alexander 2023-04-17 20:41:24 -04:00
commit 5eccc55143
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
8 changed files with 41 additions and 18 deletions

View File

@ -55,14 +55,15 @@ Sections are divided by headlines.
This test interleaves the opening and closing of each element container to see which element becomes parsed vs gets broken up. The row determines the first opening element and the column determines the second opening element. This test interleaves the opening and closing of each element container to see which element becomes parsed vs gets broken up. The row determines the first opening element and the column determines the second opening element.
# Section first and section second tests are identical so I only included section first in the repo. # Section first and section second tests are identical so I only included section first in the repo.
# Footnote definition and plain list have the same end condition of two blank lines so they are untestable. # Footnote definition and plain list have the same end condition of two blank lines so they are untestable.
| | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | | | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | Paragraph |
|---------------------+---------+---------------+---------+---------------+---------------------+------------| |---------------------+---------+---------------+---------+---------------+---------------------+------------+-----------|
| Section | - | Section | Section | Section | Section | Section | | Section | - | Section | Section | Section | Section | Section | Section |
| Greater Block | Section | First | First | First | First | First | | Greater Block | Section | First | First | First | First | First | First |
| Drawer | Section | First | First | First | First | First | | Drawer | Section | First | First | First | First | First | First |
| Dynamic Block | Section | First | First | First | First | First | | Dynamic Block | Section | First | First | First | First | First | First |
| Footnote Definition | Section | First | First | First | - | - | | Footnote Definition | Section | First | First | First | - | - | - |
| Plain List | Section | Second | Second | Second | - | First | | Plain List | Section | Second | Second | Second | - | - | - |
| Paragraph | Section | Second | Second | Second | - | - | - |
* Possible solutions * Possible solutions
** Greater blocks, drawers, and dynamic blocks disable plain list exit matcher ** Greater blocks, drawers, and dynamic blocks disable plain list exit matcher
*** Test Case 1 *** Test Case 1
@ -77,3 +78,5 @@ This test interleaves the opening and closing of each element container to see w
#+end_src #+end_src
** Parse out headlines first ** Parse out headlines first
Then go through elements parsing them in-order Then go through elements parsing them in-order
** Should paragraph exit matcher apply to the element matcher in the exit matcher
No. But paragraph exit matcher needs to apply to the object matcher.

View File

@ -0,0 +1,4 @@
:drawername:
foo
:end:
Is this still in the paragraph?

View File

@ -0,0 +1,4 @@
#+BEGIN: foo :hlines 1 :id global
foo
#+END:
Is this still in the paragraph?

View File

@ -0,0 +1,4 @@
#+begin_center
foo
#+end_center
Is this still in the paragraph?

View File

@ -0,0 +1,5 @@
foo
:drawername:
:end:

View File

@ -0,0 +1,5 @@
foo
#+BEGIN: foo :hlines 1 :id global
#+END:

View File

@ -0,0 +1,5 @@
foo
#+begin_center
#+end_center

View File

@ -1,12 +1,5 @@
1. foo foo
#+begin_center
bar
1. baz
lorem
ipsum
dolar #+end_center