From: Kim Nguyen <nguyen@bk.ru>
To: caml-list@inria.fr
Cc: Richard Jones <rich@annexia.org>
Subject: Re: [Caml-list] Quotes in comments: (* " *)
Date: Wed, 17 Dec 2003 16:54:35 +0100 [thread overview]
Message-ID: <20031217165435.069eb702.nguyen@bk.ru> (raw)
In-Reply-To: <20031217152232.GA29912@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
On Wed, 17 Dec 2003 15:22:32 +0000
Richard Jones <rich@annexia.org> wrote:
>
> Is there a deep reason why the compiler is fussed by unmatched quotes
> appearing in comments, ie: (* " *) ?
This seems necessary to ensure that any piece of code can easily be commented out :
(* This is a valid comment
let print_close_comment () = print_string "*)" <-- the comment does not end here.
*)
So the comment part of the lexer needs to analyse strings as well to igonre any "*)" character sequence within a
string. And therefore, it fails when a string is unterminated.
See http://caml.inria.fr/FAQ/FAQ_EXPERT-eng.html#commentaire
IMHO, the bug should be corrected in tuareg-mode (if possible).
Cheers,
Kim.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-12-17 15:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-17 15:22 Richard Jones
2003-12-17 15:54 ` Kim Nguyen [this message]
2003-12-17 17:02 ` Richard Jones
2003-12-17 23:09 ` William Lovas
2003-12-18 3:47 ` Dustin Sallings
2003-12-18 13:52 ` Hendrik Tews
2003-12-18 17:05 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031217165435.069eb702.nguyen@bk.ru \
--to=nguyen@bk.ru \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox