3 Oct
2010
3 Oct
'10
9:02 a.m.
Am 03.10.2010 um 10:28 schrieb luigi scarso:
Bug or limitation? Limitation, but it should be doable to remedy in TeX.
Possible but is it worth the effort, when you start with “--” the percent should also behave like in Lua etc. \starttext \bgroup\obeylines \gdef\texcomment#1 {} \egroup \bgroup \let\letterhyphen=- \catcode`-=13 \unexpanded\def-{\futurelet\next\doscanhyphen} \def\doscanhyphen {\ifx\next- \expandafter\texcomment \else \expandafter\letterhyphen \fi} \obeylines text text % foo - foo 1 -- foo 2 \normalexpanded{- foo 1} \normalexpanded{-- foo 2} text \egroup \stoptext Wolfgang