[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regular expressions that describe most (?) org syntax ?
From: |
Ihor Radchenko |
Subject: |
Re: Regular expressions that describe most (?) org syntax ? |
Date: |
Sat, 30 Oct 2021 13:18:20 +0800 |
Jean-Christophe Helary <lists@traduction-libre.org> writes:
> I am looking for a set of regular expressions that roughly describe most of
> the important org syntax.
>
> A bit like
>
> @code\{[^\}]*\}|@command\{[^\}]*\} ...
>
> describes part of the texi code found in the Emacs manuals.
>
> I could figure something out, but I thought maybe there is already something
> around…
You need to study org-element.el starting from
`org-element--current-element'.
Best,
Ihor