fix: link in plan line parses correctly as paragraph

This commit is contained in:
Emilia Simmons 2022-04-05 14:14:02 -04:00
parent 0d5e731abf
commit e2a7a19473
4 changed files with 1737 additions and 1694 deletions

View file

@ -2133,3 +2133,20 @@ Plan.15 - Expr
(timestamp
(date)
(expr))))))
================================================================================
Plan.16 - Link
================================================================================
* a
[[b]]
--------------------------------------------------------------------------------
(document
(section
(headline
(stars)
(item
(expr)))
(body
(paragraph
(expr)))))

View file

@ -174,7 +174,7 @@ org_grammar = {
alias(/\p{N}?\p{N}[:.]\p{N}\p{N}( ?\p{L}{1,2})?-\p{N}?\p{N}[:.]\p{N}\p{N}( ?\p{L}{1,2})?/, $.duration),
alias(/[.+]?\+\p{N}+\p{L}/, $.repeat),
alias(/--?\p{N}+\p{L}/, $.delay),
alias(prec(-1, /[^\]>\p{Z}\n\r]+/), $.expr),
alias(prec(-1, /[^\[<\]>\p{Z}\n\r]+/), $.expr),
),
paragraph: $ => seq(optional($._directive_list), $._multiline_text),

View file

@ -842,7 +842,7 @@
"value": -1,
"content": {
"type": "PATTERN",
"value": "[^\\]>\\p{Z}\\n\\r]+"
"value": "[^\\[<\\]>\\p{Z}\\n\\r]+"
}
},
"named": true,

File diff suppressed because it is too large Load diff