1Regexp::Common::commentU(s3e)r Contributed Perl DocumentaRteigoenxp::Common::comment(3)
2
3
4
6 Regexp::Common::comment -- provide regexes for comments.
7
9 use Regexp::Common qw /comment/;
10
11 while (<>) {
12 /$RE{comment}{C}/ and print "Contains a C comment\n";
13 /$RE{comment}{C++}/ and print "Contains a C++ comment\n";
14 /$RE{comment}{PHP}/ and print "Contains a PHP comment\n";
15 /$RE{comment}{Java}/ and print "Contains a Java comment\n";
16 /$RE{comment}{Perl}/ and print "Contains a Perl comment\n";
17 /$RE{comment}{awk}/ and print "Contains an awk comment\n";
18 /$RE{comment}{HTML}/ and print "Contains an HTML comment\n";
19 }
20
21 use Regexp::Common qw /comment RE_comment_HTML/;
22
23 while (<>) {
24 $_ =~ RE_comment_HTML() and print "Contains an HTML comment\n";
25 }
26
28 Please consult the manual of Regexp::Common for a general description
29 of the works of this interface.
30
31 Do not use this module directly, but load it via Regexp::Common.
32
33 This modules gives you regular expressions for comments in various lan‐
34 guages.
35
36 THE LANGUAGES
37
38 Below, the comments of each of the languages are described. The pat‐
39 terns are available as $RE{comment}{LANG}, foreach language LANG. Some
40 languages have variants; it's described at the individual languages how
41 to get the patterns for the variants. Unless mentioned otherwise,
42 "{-keep}" sets $1, $2, $3 and $4 to the entire comment, the opening
43 marker, the content of the comment, and the closing marker (for many
44 languages, the latter is a newline) respectively.
45
46 ABC Comments in ABC start with a backslash ("\"), and last till the end
47 of the line. See <http://homepages.cwi.nl/%7Esteven/abc/>.
48
49 Ada Comments in Ada start with "--", and last till the end of the line.
50
51 Advisor
52 Advisor is a language used by the HP product glance. Comments for
53 this language start with either "#" or "//", and last till the end
54 of the line.
55
56 Advsys
57 Comments for the Advsys language start with ";" and last till the
58 end of the line. See also <http://www.wurb.com/if/devsys/12>.
59
60 Alan
61 Alan comments start with "--", and last till the end of the line.
62 See also <http://w1.132.telia.com/~u13207378/alan/manual/alan‐
63 TOC.html>.
64
65 Algol 60
66 Comments in the Algol 60 language start with the keyword "comment",
67 and end with a ";". See <http://www.mass‐
68 werk.at/algol60/report.htm>.
69
70 Algol 68
71 In Algol 68, comments are either delimited by "#", or by one of the
72 keywords "co" or "comment". The keywords should not be part of
73 another word. See <http://westein.arb-phys.uni-dort‐
74 mund.de/~wb/a68s.txt>. With "{-keep}", only $1 will be set,
75 returning the entire comment.
76
77 ALPACA
78 The ALPACA language has comments starting with "/*" and ending with
79 "*/".
80
81 awk The awk programming language uses comments that start with "#" and
82 end at the end of the line.
83
84 B The B language has comments starting with "/*" and ending with
85 "*/".
86
87 BASIC
88 There are various forms of BASIC around. Currently, we only support
89 the variant supported by mvEnterprise, whose pattern is available
90 as $RE{comment}{BASIC}{mvEnterprise}. Comments in this language
91 start with a "!", a "*" or the keyword "REM", and end till the end
92 of the line. See <http://www.rainingdata.com/prod‐
93 ucts/beta/docs/mve/50/ReferenceManual/Basic.pdf>.
94
95 Beatnik
96 The esotoric language Beatnik only uses words consisting of let‐
97 ters. Words are scored according to the rules of Scrabble. Words
98 scoring less than 5 points, or 18 points or more are considered
99 comments (although the compiler might mock at you if you score less
100 than 5 points). Regardless whether "{-keep}", $1 will be set, and
101 set to the entire comment. This pattern requires perl 5.8.0 or
102 newer.
103
104 beta-Juliet
105 The beta-Juliet programming language has comments that start with
106 "//" and that continue till the end of the line. See also
107 <http://www.catseye.mb.ca/esoteric/b-juliet/index.html>.
108
109 Befunge-98
110 The esotoric language Befunge-98 uses comments that start and end
111 with a ";". See <http://www.catseye.mb.ca/eso‐
112 teric/befunge/98/spec98.html>.
113
114 BML BML, or Better Markup Language is an HTML templating language that
115 uses comments starting with "<?c_", and ending with "c_?>". See
116 <http://www.livejournal.com/doc/server/bml.index.html>.
117
118 Brainfuck
119 The minimal language Brainfuck uses only eight characters, "<",
120 ">", "[", "]", "+", "-", "." and ",". Any other characters are
121 considered comments. With "{-keep}", $1 is set to the entire com‐
122 ment.
123
124 C The C language has comments starting with "/*" and ending with
125 "*/".
126
127 C-- The C-- language has comments starting with "/*" and ending with
128 "*/". See <http://cs.uas.arizona.edu/classes/453/pro‐
129 grams/C--Spec.html>.
130
131 C++ The C++ language has two forms of comments. Comments that start
132 with "//" and last till the end of the line, and comments that
133 start with "/*", and end with "*/". If "{-keep}" is used, only $1
134 will be set, and set to the entire comment.
135
136 C# The C# language has two forms of comments. Comments that start with
137 "//" and last till the end of the line, and comments that start
138 with "/*", and end with "*/". If "{-keep}" is used, only $1 will be
139 set, and set to the entire comment. See <http://msdn.micro‐
140 soft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfc‐
141 sharpspec_C.asp>.
142
143 Caml
144 Comments in Caml start with "(*", end with "*)", and can be nested.
145 See <http://www.cs.caltech.edu/courses/cs134/cs134b/book.pdf> and
146 <http://pauillac.inria.fr/caml/index-eng.html>.
147
148 Cg The Cg language has two forms of comments. Comments that start with
149 "//" and last till the end of the line, and comments that start
150 with "/*", and end with "*/". If "{-keep}" is used, only $1 will be
151 set, and set to the entire comment. See <http://devel‐
152 oper.nvidia.com/attach/3722>.
153
154 CLU In "CLU", a comment starts with a procent sign ("%"), and ends with
155 the next newline. See <ftp://ftp.lcs.mit.edu:/pub/pclu/CLU-syn‐
156 tax.ps> and <http://www.pmg.lcs.mit.edu/CLU.html>.
157
158 COBOL
159 Traditionally, comments in COBOL are indicated by an asteriks in
160 the seventh column. This is what the pattern matches. Modern com‐
161 piler may more lenient though. See
162 <http://www.csis.ul.ie/cobol/Course/COBOLIntro.htm>, and
163 <http://www.csis.ul.ie/cobol/default.htm>. Due to a bug in the reg‐
164 exp engine of perl 5.6.x, this regexp is only available in version
165 5.8.0 and up.
166
167 CQL Comments in the chess query language (CQL) start with a semi colon
168 (";") and last till the end of the line. See
169 <http://www.rbnn.com/cql/>.
170
171 Crystal Report
172 The formula editor in Crystal Reports uses comments that start with
173 "//", and end with the end of the line.
174
175 Dylan
176 There are two types of comments in Dylan. They either start with
177 "//", or are nested comments, delimited with "/*" and "*/". Under
178 "{-keep}", only $1 will be set, returning the entire comment. This
179 pattern requires perl 5.6.0 or newer.
180
181 ECMAScript
182 The ECMAScript language has two forms of comments. Comments that
183 start with "//" and last till the end of the line, and comments
184 that start with "/*", and end with "*/". If "{-keep}" is used, only
185 $1 will be set, and set to the entire comment. JavaScript is
186 Netscapes implementation of ECMAScript. See <http://www.ecma-inter‐
187 national.org/publications/files/ecma-st/Ecma-262.pdf>, and
188 <http://www.ecma-international.org/publications/stan‐
189 dards/Ecma-262.htm>.
190
191 Eiffel
192 Eiffel comments start with "--", and last till the end of the line.
193
194 False
195 In False, comments start with "{" and end with "}". See
196 <http://wouter.fov120.com/false/false.txt>
197
198 FPL The FPL language has two forms of comments. Comments that start
199 with "//" and last till the end of the line, and comments that
200 start with "/*", and end with "*/". If "{-keep}" is used, only $1
201 will be set, and set to the entire comment.
202
203 Forth
204 Comments in Forth start with "\", and end with the end of the line.
205 See also <http://docs.sun.com/sb/doc/806-1377-10>.
206
207 Fortran
208 There are two forms of Fortran. There's free form Fortran, which
209 has comments that start with "!", and end at the end of the line.
210 The pattern for this is given by $RE{Fortran}. Fixed form Fortran,
211 which has been obsoleted, has comments that start with "C", "c" or
212 "*" in the first column, or with "!" anywhere, but the sixth col‐
213 umn. The pattern for this are given by $RE{Fortran}{fixed}.
214
215 See also <http://www.cray.com/craydoc/manu‐
216 als/007-3692-005/html-007-3692-005/>.
217
218 Funge-98
219 The esotoric language Funge-98 uses comments that start and end
220 with a ";".
221
222 fvwm2
223 Configuration files for fvwm2 have comments starting with a "#" and
224 lasting the rest of the line.
225
226 Haifu
227 Haifu, an esotoric language using haikus, has comments starting and
228 ending with a ",". See <http://www.dangermouse.net/eso‐
229 teric/haifu.html>.
230
231 Haskell
232 There are two types of comments in Haskell. They either start with
233 at least two dashes, or are nested comments, delimited with "{-"
234 and "-}". Under "{-keep}", only $1 will be set, returning the
235 entire comment. This pattern requires perl 5.6.0 or newer.
236
237 HTML
238 In HTML, comments only appear inside a comment declaration. A com‐
239 ment declaration starts with a "<!", and ends with a ">". Inside
240 this declaration, we have zero or more comments. Comments starts
241 with "--" and end with "--", and are optionally followed by white‐
242 space. The pattern $RE{comment}{HTML} recognizes those comment dec‐
243 larations (and hence more than a comment). Note that this is not
244 the same as something that starts with "<!--" and ends with "-->",
245 because the following will be matched completely:
246
247 <!-- First Comment --
248 --> Second Comment <!--
249 -- Third Comment -->
250
251 Do not be fooled by what your favourite browser thinks is an HTML
252 comment.
253
254 If "{-keep}" is used, the following are returned:
255
256 $1 captures the entire comment declaration.
257
258 $2 captures the MDO (markup declaration open), "<!".
259
260 $3 captures the content between the MDO and the MDC.
261
262 $4 captures the (last) comment, without the surrounding dashes.
263
264 $5 captures the MDC (markup declaration close), ">".
265
266 Hugo
267 There are two types of comments in Hugo. They either start with "!"
268 (which cannot be followed by a "\"), or are nested comments, delim‐
269 ited with "!\" and "\!". Under "{-keep}", only $1 will be set,
270 returning the entire comment. This pattern requires perl 5.6.0 or
271 newer.
272
273 Icon
274 Icon has comments that start with "#" and end at the next new line.
275 See <http://www.toolsofcomputing.com/IconHandbook/IconHand‐
276 book.pdf>, <http://www.cs.arizona.edu/icon/index.htm>, and
277 <http://burks.bton.ac.uk/burks/language/icon/index.htm>.
278
279 ILLGOL
280 The esotoric language ILLGOL uses comments starting with NB and
281 lasting till the end of the line. See <http://www.cats‐
282 eye.mb.ca/esoteric/illgol/index.html>.
283
284 INTERCAL
285 Comments in INTERCAL are single line comments. They start with one
286 of the keywords "NOT" or "N'T", and can optionally be preceeded by
287 the keywords "DO" and "PLEASE". If both keywords are used, "PLEASE"
288 preceeds "DO". Keywords are separated by whitespace.
289
290 J The language J uses comments that start with "NB.", and that last
291 till the end of the line. See <http://www.jsoft‐
292 ware.com/books/help/primer/contents.htm>, and <http://www.jsoft‐
293 ware.com/>.
294
295 Java
296 The Java language has two forms of comments. Comments that start
297 with "//" and last till the end of the line, and comments that
298 start with "/*", and end with "*/". If "{-keep}" is used, only $1
299 will be set, and set to the entire comment.
300
301 JavaScript
302 The JavaScript language has two forms of comments. Comments that
303 start with "//" and last till the end of the line, and comments
304 that start with "/*", and end with "*/". If "{-keep}" is used, only
305 $1 will be set, and set to the entire comment. JavaScript is
306 Netscapes implementation of ECMAScript. See
307 <http://www.mozilla.org/js/language/E262-3.pdf>, and
308 <http://www.mozilla.org/js/language/>.
309
310 LaTeX
311 The documentation language LaTeX uses comments starting with "%"
312 and ending at the end of the line.
313
314 Lisp
315 Comments in Lisp start with a semi-colon (";") and last till the
316 end of the line.
317
318 LPC The LPC language has comments starting with "/*" and ending with
319 "*/".
320
321 LOGO
322 Comments for the language LOGO start with ";", and last till the
323 end of the line.
324
325 lua Comments for the lua language start with "--", and last till the
326 end of the line. See also <http://www.lua.org/manual/manual.html>.
327
328 M, MUMPS
329 In "M" (aka "MUMPS"), comments start with a semi-colon, and last
330 till the end of a line. The language specification requires the
331 semi-colon to be preceeded by one or more linestart characters.
332 Those characters default to a space, but that's configurable. This
333 requirement, of preceeding the comment with linestart characters is
334 not tested for. See <ftp://ftp.inter‐
335 sys.com/pub/openm/ism/ism64docs.zip>, <http://mtechnology.inter‐
336 sys.com/mproducts/openm/index.html>, and <http://mcen‐
337 ter.com/mtrc/index.html>.
338
339 mutt
340 Configuration files for mutt have comments starting with a "#" and
341 lasting the rest of the line.
342
343 Nickle
344 The Nickle language has one line comments starting with "#" (like
345 Perl), or multiline comments delimited by "/*" and "*/" (like C).
346 Under "-keep", only $1 will be set. See also
347 <http://www.nickle.org>.
348
349 Oberon
350 Comments in Oberon start with "(*" and end with "*)". See
351 <http://www.oberon.ethz.ch/oreport.html>.
352
353 Pascal
354 There are many implementations of Pascal. This modules provides
355 pattern for comments of several implementations.
356
357 $RE{comment}{Pascal}
358 This is the pattern that recognizes comments according to the
359 Pascal ISO standard. This standard says that comments start
360 with either "{", or "(*", and end with "}" or "*)". This means
361 that "{*)" and "(*}" are considered to be comments. Many Pascal
362 applications don't allow this. See <http://www.pascal-cen‐
363 tral.com/docs/iso10206.txt>
364
365 $RE{comment}{Alice}
366 The Alice Pascal compiler accepts comments that start with "{"
367 and end with "}". Comments are not allowed to contain newlines.
368 See <http://www.templetons.com/brad/alice/language/>.
369
370 $RE{comment}{Pascal}{Delphi}, $RE{comment}{Pascal}{Free} and
371 $RE{comment}{Pascal}{GPC}
372 The Delphi Pascal, Free Pascal and the Gnu Pascal Compiler
373 implementations of Pascal all have comments that either start
374 with "//" and last till the end of the line, are delimited with
375 "{" and "}" or are delimited with "(*" and "*)". Patterns for
376 those comments are given by $RE{comment}{Pascal}{Delphi},
377 $RE{comment}{Pascal}{Free} and $RE{comment}{Pascal}{GPC}
378 respectively. These patterns only set $1 when "{-keep}" is
379 used, which will then include the entire comment.
380
381 See <http://info.borland.com/techpubs/delphi5/oplg/>,
382 <http://www.freepascal.org/docs-html/ref/ref.html> and
383 <http://www.gnu-pascal.de/gpc/>.
384
385 $RE{comment}{Pascal}{Workshop}
386 The Workshop Pascal compiler, from SUN Microsystems, allows
387 comments that are delimited with either "{" and "}", delimited
388 with "(*)" and "*"), delimited with "/*", and "*/", or starting
389 and ending with a double quote ("""). When "{-keep}" is used,
390 only $1 is set, and returns the entire comment.
391
392 See <http://docs.sun.com/db/doc/802-5762>.
393
394 PEARL
395 Comments in PEARL start with a "!" and last till the end of the
396 line, or start with "/*" and end with "*/". With "{-keep}", $1 will
397 be set to the entire comment.
398
399 PHP Comments in PHP start with either "#" or "//" and last till the end
400 of the line, or are delimited by "/*" and "*/". With "{-keep}", $1
401 will be set to the entire comment.
402
403 PL/B
404 In PL/B, comments start with either "." or ";", and end with the
405 next newline. See <http://www.mmcctech.com/pl-b/plb-0010.htm>.
406
407 PL/I
408 The PL/I language has comments starting with "/*" and ending with
409 "*/".
410
411 PL/SQL
412 In PL/SQL, comments either start with "--" and run till the end of
413 the line, or start with "/*" and end with "*/".
414
415 Perl
416 Perl uses comments that start with a "#", and continue till the end
417 of the line.
418
419 Portia
420 The Portia programming language has comments that start with "//",
421 and last till the end of the line.
422
423 Python
424 Python uses comments that start with a "#", and continue till the
425 end of the line.
426
427 Q-BAL
428 Comments in the Q-BAL language start with "`" (a backtick), and
429 contine till the end of the line.
430
431 QML In "QML", comments start with "#" and last till the end of the
432 line. See <http://www.questionmark.com/uk/qml/overview.doc>.
433
434 R The statistical language R uses comments that start with a "#" and
435 end with the following new line. See <http://www.r-project.org/>.
436
437 REBOL
438 Comments for the REBOL language start with ";" and last till the
439 end of the line.
440
441 Ruby
442 Comments in Ruby start with "#" and last till the end of the time.
443
444 Scheme
445 Scheme comments start with ";", and last till the end of the line.
446 See <http://schemers.org/>.
447
448 shell
449 Comments in various shells start with a "#" and end at the end of
450 the line.
451
452 Shelta
453 The esotoric language Shelta uses comments that start and end with
454 a ";". See <http://www.catseye.mb.ca/esoteric/shelta/index.html>.
455
456 SLIDE
457 The SLIDE language has two froms of comments. First there is the
458 line comment, which starts with a "#" and includes the rest of the
459 line (just like Perl). Second, there is the multiline, nested com‐
460 ment, which are delimited by "(*" and "*)". Under C{-keep}>, only
461 $1 is set, and is set to the entire comment. This pattern needs at
462 least Perl version 5.6.0. See <http://www.cs.berke‐
463 ley.edu/~ug/slide/docs/slide/spec/spec_frame_intro.shtml>.
464
465 slrn
466 Configuration files for slrn have comments starting with a "%" and
467 lasting the rest of the line.
468
469 Smalltalk
470 Smalltalk uses comments that start and end with a double quote,
471 """.
472
473 SMITH
474 Comments in the SMITH language start with ";", and last till the
475 end of the line.
476
477 Squeak
478 In the Smalltalk variant Squeak, comments start and end with """.
479 Double quotes can appear inside comments by doubling them.
480
481 SQL Standard SQL uses comments starting with two or more dashes, and
482 ending at the end of the line.
483
484 MySQL does not follow the standard. Instead, it allows comments
485 that start with a "#" or "-- " (that's two dashes and a space) end‐
486 ing with the following newline, and comments starting with "/*",
487 and ending with the next ";" or "*/" that isn't inside single or
488 double quotes. A pattern for this is returned by $RE{com‐
489 ment}{SQL}{MySQL}. With "{-keep}", only $1 will be set, and it
490 returns the entire comment.
491
492 Tcl In Tcl, comments start with "#" and continue till the end of the
493 line.
494
495 TeX The documentation language TeX uses comments starting with "%" and
496 ending at the end of the line.
497
498 troff
499 The document formatting language troff uses comments starting with
500 "\"", and continuing till the end of the line.
501
502 vi In configuration files for the editor vi, one can use comments
503 starting with """, and ending at the end of the line.
504
505 *W In the language *W, comments start with "⎪⎪", and end with "!!".
506
507 zonefile
508 Comments in DNS zonefiles start with ";", and continue till the end
509 of the line.
510
512 [Go 90]
513 Charles F. Goldfarb: The SGML Handbook. Oxford: Oxford University
514 Press. 1990. ISBN 0-19-853737-9. Ch. 10.3, pp 390-391.
515
517 $Log: comment.pm,v $
518 Revision 2.116 2005/03/16 00:00:02 abigail
519 CQL, INTERCAL, R
520
521 Revision 2.115 2005/01/09 23:12:03 abigail
522 BML comments
523
524 Revision 2.114 2004/12/18 11:43:06 abigail
525 POD: HTML comments end in >, not <
526
527 Revision 2.113 2004/12/15 22:06:51 abigail
528 Fixed regex for J comments
529
530 Revision 2.112 2004/06/09 21:44:48 abigail
531 New languages
532
533 Revision 2.111 2003/09/24 08:39:35 abigail
534 Stupid "syntax" warning issues false positives
535
536 Revision 2.110 2003/08/19 21:27:55 abigail
537 Nickle language
538
539 Revision 2.109 2003/08/13 10:07:39 abigail
540 Added patterns for C--, C#, Cg and SLIDE comments
541
542 Revision 2.108 2003/08/01 11:30:25 abigail
543 Comments for 'QML' and 'PL/SQL'
544
545 Revision 2.107 2003/05/25 21:33:48 abigail
546 POD nits from Bryan C. Warnock
547
548 Revision 2.106 2003/03/12 22:25:42 abigail
549 - More generic setup to define comments for various languages.
550 - Expanded and redid the documentation for comment.pm.
551 - Comments for Advisor, Advsys, Alan, Algol 60, Algol 68, B,
552 BASIC (mvEnterprise), Forth, Fortran (both fixed and free form),
553 fvwm2, mutt, Oberon, 6 versions of Pascal,
554 PEARL (one of the at least four...), PL/B, PL/I, slrn, Squeak.
555
556 Revision 2.105 2003/03/09 19:04:42 abigail
557 - More generic setup to define comments for various languages.
558 - Expanded and redid the documentation for comment.pm.
559 Now every language has its own paragraph, describing its comment,
560 and pointers to webpages.
561 - Comments for Advisor, Advsys, Alan, Algol 60, Algol 68, B, BASIC
562 (mvEnterprise), Forth, Fortran (both fixed and free form), fvwm2, mutt,
563 Oberon, 6 versions of Pascal, PEARL (one of the at least four...), PL/B,
564 PL/I, slrn, Squeak.
565
566 Revision 2.104 2003/02/21 14:48:06 abigail
567 Crystal Reports
568
569 Revision 2.103 2003/02/11 09:39:08 abigail
570 Added
571
572 Revision 2.102 2003/02/07 15:23:54 abigail
573 Lua and FPL
574
575 Revision 2.101 2003/02/01 22:55:31 abigail
576 Changed Copyright years
577
578 Revision 2.100 2003/01/21 23:19:40 abigail
579 The whole world understands RCS/CVS version numbers, that 1.9 is an
580 older version than 1.10. Except CPAN. Curse the idiot(s) who think
581 that version numbers are floats (in which universe do floats have
582 more than one decimal dot?).
583 Everything is bumped to version 2.100 because CPAN couldn't deal
584 with the fact one file had version 1.10.
585
586 Revision 1.19 2002/11/06 13:51:34 abigail
587 Minor POD changes.
588
589 Revision 1.18 2002/09/18 18:13:01 abigail
590 Fixes for 5.005
591
592 Revision 1.17 2002/09/04 17:04:24 abigail
593 Q-BAL
594
595 Revision 1.16 2002/08/27 16:50:50 abigail
596 Patterns for Beatnik, Befunge-98, Funge-98 and W*.
597
598 Revision 1.15 2002/08/22 17:04:03 abigail
599 SMITH added
600
601 Revision 1.14 2002/08/22 16:41:25 abigail
602 + Added function 'id' and 'from_to' with associated data.
603 + Added function 'combine' for languages having multiple syntaxes.
604 + Added 'Shelta'
605
606 Revision 1.13 2002/08/21 16:00:32 abigail
607 beta-Juliet, Portia, ILLGOL and Brainfuck.
608
609 Revision 1.12 2002/08/20 17:40:37 abigail
610 - Created a 'nested' function (simplified version from
611 Regexp::Common::balanced).
612 - Comments that use 'from' to eol or balanced (nested) delimiters
613 are now generated from a data array.
614 - Added Hugo and Haifu.
615
616 Revision 1.11 2002/08/05 12:16:58 abigail
617 Fixed 'Regex::' and 'Rexexp::' typos to 'Regexp::'
618 (Found my Mike Castle).
619
620 Revision 1.10 2002/07/31 23:33:16 abigail
621 Documented that Haskell and Dylan comments need at least 5.6.0.
622
623 Revision 1.9 2002/07/31 23:12:29 abigail
624 Dylan and Haskell comments can be nested, hence version 5.6.0 of Perl
625 is needed to be able to make a regex matching them.
626
627 Revision 1.8 2002/07/31 14:48:16 abigail
628 Added LOGO (to please petdance)
629
630 Revision 1.7 2002/07/31 13:06:41 abigail
631 Dealt with -keep for Haskell and Dylan.
632
633 Revision 1.6 2002/07/31 00:54:00 abigail
634 Added comments for Haskell, Dylan, Smalltalk and MySQL.
635
636 Revision 1.5 2002/07/30 16:38:23 abigail
637 Added support for the languages: LaTeX, Tcl, TeX and troff.
638
639 Revision 1.4 2002/07/26 16:48:12 abigail
640 Simplied datastructure for the languages that use single line comments.
641
642 Revision 1.3 2002/07/26 16:37:20 abigail
643 Added new languages: Ada, awk, Eiffel, Java, LPC, PHP, Python,
644 REBOL, Ruby, vi and zonefile.
645
646 Revision 1.2 2002/07/25 22:37:44 abigail
647 Added 'use strict'.
648 Added 'no_defaults' to 'use Regex::Common' to prevent loaded of all
649 defaults.
650
651 Revision 1.1 2002/07/25 19:56:07 abigail
652 Modularizing Regexp::Common.
653
655 Regexp::Common for a general description of how to use this interface.
656
658 Damian Conway (damian@conway.org)
659
661 This package is maintained by Abigail (regexp-common@abigail.nl).
662
664 Bound to be plenty.
665
666 For a start, there are many common regexes missing. Send them in to
667 regexp-common@abigail.nl.
668
670 Copyright (c) 2001 - 2003, Damian Conway. All Rights Reserved.
671 This module is free software. It may be used, redistributed
672 and/or modified under the terms of the Perl Artistic License
673 (see http://www.perl.com/perl/misc/Artistic.html)
674
675
676
677perl v5.8.8 2003-03-23 Regexp::Common::comment(3)