Re: Style(9): Allow // comments
- Reply: Stefan Esser : "Re: Style(9): Allow // comments"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 Jul 2022 23:25:08 UTC
Beware // as a delimeter in calendar files, exaples below. Nov 5 Fireworks in UK https://en.wikipedia.org/wiki/Guy_Fawkes_Night I have 248 lines match on http://berklix.com/~jhs/src/bsd/fixes/freebsd/src/gen/usr.bin/calendar/ find . -type f | xargs grep // | grep http | grep -v /no_customise/ | wc -l Most http[s]:// are in commented out blocks, but some are uncommented, eg: Oct Sun-1 Munich Oktoberfest ends http://www.oktoberfest.de /* Not sure if exact algorithm, probably first Sun. in Oct, * but might be Sunday of 1st full weekend in Oct? * I've kept a log to later deduce, see * http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/src/gen/usr.bin/calendar/calendars/de_DE.ISO8859-1/bavaria/munich/calendar.other * Start date is more problematic, being * Saturday with 16 days to end on Sunday. * & Parade as Friday with 17 days before end, * An easter-16 type fuctionality would be nice. */ Cheers, -- Julian Stacey http://berklix.com/jhs/ http://stolenVotes.uk Arm Ukraine, Zap killer Putin, grain & fuel loss hits poorest. http://berklix.eu/ferries/#dover_solution