Unsubscribe
My Email
gmmarcus at outlook.my
Sun Feb 25 14:21:15 UTC 2018
Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: KWrite-Devel <kwrite-devel-bounces at kde.org> on behalf of rhkramer at gmail.com <rhkramer at gmail.com>
Sent: Sunday, February 25, 2018 10:14:58 PM
To: kwrite-devel at kde.org; D7864+public+a022f7a19332d77c at phabricator.kde.org
Subject: Re: D7864: Basic support for PHP and Python fenced code blocks in Markdown
On Sunday, February 25, 2018 04:25:00 AM Volker Krause wrote:
> - when nesting a language you need to implement detecting the end of that
> code manually each time - you need to explicitly list all languages you
> want to nest, one by one
>
> The latter is ok if there is a limited amount of languages that can be
> nested in this context, but in case of markdown it's in theory every
> language we have. So a rule like `<NestLanguage syntax="<name or regexp
> capture>" end="<string|regexp>"/>` to do all the repeating work inside the
> engine might be interesting. We'd need to survey all current usages of
> nesting to see if that covers enough use-cases though, I haven't done that
> yet.
Thanks--I like that idea. (But I'm working on a lexer for Scintilla and may
incorporate the idea there (sometime after I get the basic lexer working,
which has been going very slow). (The markup language (that the lexer will
lex and fold) is TWiki markup with some extensions / variations.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180225/67fbe427/attachment.html>
More information about the KWrite-Devel
mailing list