fix: link in plan line parses correctly as paragraph
This commit is contained in:
parent
0d5e731abf
commit
e2a7a19473
4 changed files with 1737 additions and 1694 deletions
|
|
@ -2133,3 +2133,20 @@ Plan.15 - Expr
|
|||
(timestamp
|
||||
(date)
|
||||
(expr))))))
|
||||
|
||||
================================================================================
|
||||
Plan.16 - Link
|
||||
================================================================================
|
||||
* a
|
||||
[[b]]
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(document
|
||||
(section
|
||||
(headline
|
||||
(stars)
|
||||
(item
|
||||
(expr)))
|
||||
(body
|
||||
(paragraph
|
||||
(expr)))))
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -842,7 +842,7 @@
|
|||
"value": -1,
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[^\\]>\\p{Z}\\n\\r]+"
|
||||
"value": "[^\\[<\\]>\\p{Z}\\n\\r]+"
|
||||
}
|
||||
},
|
||||
"named": true,
|
||||
|
|
|
|||
3410
src/parser.c
3410
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue