PATCH: Fix my yodl code and another instance in arith.yo
Mikael Magnusson <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
I had blissfully forgotten about the LPAR()RPAR() stuff, and apparently I was not alone :). The formatting for the isnan example was horribly mangled.
---
Doc/Zsh/arith.yo | 2 +-
Doc/Zsh/mod_pcre.yo | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo
index 17eb3cc366..4a0709b27c 100644
--- a/Doc/Zsh/arith.yo
+++ b/Doc/Zsh/arith.yo
@@ -144,7 +144,7 @@ provided by the tt(zsh/mathfunc) module
or compare it to the string tt(NaN):
example(% zmodload zsh/mathfunc
-% (( isnan(0.0 / 0) )) && print is nan
+% LPAR()LPAR() isnan+LPAR()0.0 / 0+RPAR() RPAR()RPAR() && print is nan
is nan
% typeset -F f=nan && [[ $f == NaN ]] && print is nan
is nan)
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo
index 01b6d690a5..8458145dd6 100644
--- a/Doc/Zsh/mod_pcre.yo
+++ b/Doc/Zsh/mod_pcre.yo
@@ -81,7 +81,7 @@ that callouts are not available in the below -pcre-match test condition. It is
also likely not a good idea to call any pcre related builtins from a callout. As
an example, the following will print out `tt(bar)':
-example(pcre_compile 'foo(?C"echo ${.pcre.subject[${.pcre.pos},-1]}")'
+example(pcre_compile 'foo+LPAR()?C"echo ${.pcre.subject[${.pcre.pos},-1]}"+RPAR()'
pcre_match foobar)
)
enditem()
--
2.38.1