summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-01-01 12:32:40 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-01-07 19:37:41 +0000
commitb066ce22d051ba99e7d9fdb296ba522d62e88607 (patch)
treebf70b9fc23c5d08faf25ac9dddf57ebcd4eb2b9c
parent2b9419fd7ee348483da5e5ba1a24fa8f67b9a618 (diff)
downloadzsh-b066ce22d051ba99e7d9fdb296ba522d62e88607.tar.gz
zsh-b066ce22d051ba99e7d9fdb296ba522d62e88607.tar.xz
zsh-b066ce22d051ba99e7d9fdb296ba522d62e88607.zip
unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
-rw-r--r--ChangeLog3
-rw-r--r--Util/zyodl.vim3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 11ca51495..592f4f0bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2020-01-07  Daniel Shahaf  <danielsh@apache.org>
 
+	* unposted: Util/zyodl.vim: internal: zyodl.vim: Support glob
+	qualifiers in example()'s
+
 	* unposted: Util/zyodl.vim: internal: zyodl.vim: Support yodl
 	comments.
 
diff --git a/Util/zyodl.vim b/Util/zyodl.vim
index ed9cf86b5..7acd1dfaf 100644
--- a/Util/zyodl.vim
+++ b/Util/zyodl.vim
@@ -24,6 +24,7 @@
 "   COMMENT(foo var(foo) foo)
 "   comment(foo)
 "   example(print *.c+LPAR()#q:s/#%+LPAR()#b+RPAR()s+LPAR()*+RPAR().c/'S${match[1]}.C'/+RPAR())
+"   example(zargs -- **/*(.) -- ls -l)
 "   ifzman(zmanref(zshmisc))ifnzman(noderef(Redirection))
 "   LPAR()foo 42 foo+RPAR()
 "   chapter(foo (foo) foo)
@@ -52,7 +53,7 @@ syn match  zyodlSpecial "+\?\<\(LPAR\|RPAR\|PLUS\)()"
 syn match  zyodlNumber  "\d\+"
 syn region zyodlItem    start="\<xitem(" end=")" contains=zyodlSpecial,@zyodlInline
 syn region zyodlItem    start="\<item("  end=")" contains=zyodlSpecial,@zyodlInline
-syn region zyodlExample start="\<example(" end=")" contains=zyodlSpecial
+syn region zyodlExample start="\<example(" end=")" contains=zyodlSpecial,zyodlParenthetical
 syn region zyodlComment start="\<COMMENT(" end=")" contains=zyodlSpecial,@zyodlInline,zyodlParenthetical
 " comment that gets output in generated texinfo/roff source
 syn region zyodlComment start="\<comment(" end=")"