opnsense-src/usr.bin/calendar/tests/calendar.comment
Stefan Eßer 35b8fd0b69 usr.bin/calendar: do not treat // in text as comment
The C++-style comment marker "//" has been added with the rewrite of
the preprocessor features. Since this character sequence occurs	in
ULRS, the reminder of the URL was considered a comment and stripped
from the calendar line.

Change parsing of "//" to only start a comment at the begin of a line
or when	preceeded by a white-space character.

PR:		256455
Reported by:	Philippe Michel (philippe.michel7 at free.fr)
MFC after:	3 days
2021-06-07 15:55:23 +02:00

11 lines
320 B
Text

1 1 jan 1 // comment
1 2 jan 2 /* comment */
1 3 jan /* comment */3
1 4 /* comment*/jan 4
// comment
/* comment */1 5 jan 5
1/* comment */ 6 jan 6
1 7 jan 7 // /* comment */ comment
1 1/* comment */1 jan /* comment */11 // comment
1 12 http://localhost.local/
1 13 http://localhost.local/ // URL with additional comment