[NTG-context] Bug in ctxtools --documentation
Hans Hagen
pragma at wxs.nl
Mon Jul 31 09:46:45 CEST 2006
Aditya Mahajan wrote:
> Hi Hans,
>
> ctxtools.rb says that %D is the documetation marker. However, while
> matching it uses
>
> when /^[%\#]D/io then
>
> Doesn't /i stand for ignorecase, which means that %d is also matched?
> Is this a bug or a feature?
>
an undocumented feature (which will remain undocumented because i
dislike a mix of Dd's)
> Try generating documentation of core-fnt.tex for an interesting
> manifestation of this. You have
>
> %def\uppercased#1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@globalcrap}
> %def\lowercased#1{{\forceunexpanded\xdef\@@globalcrap{\lowercase{#1}}}\@@globalcrap}
>
> %d gets matched, %de gets deleted and the following is written in
> core-fnt.ted
>
> \startdocumentation
> f\uppercased#1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@globalcrap}
> f\lowercased#1{{\forceunexpanded\xdef\@@globalcrap{\lowercase{#1}}}\@@globalcrap}
> \stopdocumentation
>
actually it's lazyness
when /^[%\#]D($| )/io then
when /^[%\#]M($| )/io then
so there need to be a space after the %D *or a newline)
Hans
More information about the ntg-context
mailing list