Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [docs bug] FAQ contains yodl macros in generated HTML



Jun-T wrote on Mon, Feb 14, 2022 at 20:13:16 +0900:
> There may be many ways to fix the problem. The patch below uses
> SUBST(_LPAR_)(CHAR(40)) instead of def(LPAR)(0)(CHAR(40)), because the substitution
> works even in NOEXPAND().

Thanks!

Here's the zyodl.vim diff for that, too.

Cheers,

Daniel


diff --git a/Util/zyodl.vim b/Util/zyodl.vim
index 91cac072b..7579365ac 100644
--- a/Util/zyodl.vim
+++ b/Util/zyodl.vim
@@ -82,6 +82,8 @@ syn keyword zyodlBullet  itemiz      conceal cchar=•
 syn match   zyodlSpecial "\<DASH()-" conceal cchar=—
 syn match   zyodlSpecial "+\?LPAR()" conceal cchar=(
 syn match   zyodlSpecial "+\?RPAR()" conceal cchar=)
+syn match   zyodlSpecial "+\?_LPAR_" conceal cchar=(
+syn match   zyodlSpecial "+\?_RPAR_" conceal cchar=)
 syn match   zyodlSpecial "+\?PLUS()" conceal cchar=+
 syn match   zyodlFAQDash "+\?\<emdash()" conceal cchar=—
  





Messages sorted by: Reverse Date, Date, Thread, Author