caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ralph Douglass" <ralph@grayskies.net>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OSX GUI
Date: Thu, 7 Jun 2007 13:08:54 -0400	[thread overview]
Message-ID: <71767b800706071008h1b0b6f25m8e7e88f161f54c49@mail.gmail.com> (raw)
In-Reply-To: <B7E33340-DA6B-4D5D-B906-1233C1D981EA@valdosta.edu>

[-- Attachment #1: Type: text/plain, Size: 2880 bytes --]

It highlights fine for me.  Try grabbing the latest version of the bundle.

On 6/7/07, Jonathan Bryant <jtbryant@valdosta.edu> wrote:
>
>
> On Jun 7, 2007, at 11:21 AM, William D. Neumann wrote:
>
> > On Wed, 6 Jun 2007, Jonathan Bryant wrote:
> >
> >>> Do you prefer TextMate's OCaml mode to that of Emacs?
> >>
> >> It's OCaml mode usually works fine, but there are a few places it
> >> messes up: the "with" record syntax is the most notable.
> >
> > Yeah... unfortunately, the regex matching that the syntax
> > hilighting is based on hakes it hard to get certain constructs
> > right.  I believe this is supposed to be overhauled in v2.0 (which
> > is dependant on Tiger).  BTW: what's wrong with the with record
> > syntax?  It seems to work fine for me.
>
> Copy this into TextMate:
>
> type t = {
> x : int;
> y : float
> }
>
> let _ =
>    let r = { x = 1; y = 1.0 } in
>    let r' = { r with x = 2 } in
>    (* ... Syntax highlighting has stopped working here ... *)
>
> That's where it fails because of the "with".  It's the only obvious
> bug I've run across, but if you have something like that early in the
> code, the rest of your code is not highlighted.  Maybe I have an old
> version of the bundle if you don't see this problem.
>
> >
> >> Downsides are that (a) not programmable, and (b) you have to keep
> >> a terminal open to build, etc.
> >
> > Well, it is scriptable, so you could write a script that tould take
> > care of that for you.  Ocamlbuild should help make this a bit less
> > painless as well.
> >
> > Actually, my biggest annoyance is that you can't easily do
> > something like jump to the ith character of a selection (though I
> > could prabably write a script for that too), which is needed for
> > working with large exressions in the toplevel where it identifies
> > errors by location and not highlighting.
> >
> > William D. Neumann
> >
> > ---
> >
> > "There's just so many extra children, we could just feed the
> > children to these tigers.  We don't need them, we're not doing
> > anything with them.
> >
> > Tigers are noble and sleek; children are loud and messy."
> >
> >         -- Neko Case
> >
> > Life is unfair.  Kill yourself or get over it.
> >       -- Black Box Recorder
> >
> > _______________________________________________
> > Caml-list mailing list. Subscription management:
> > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> > Archives: http://caml.inria.fr
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
Ralph

[-- Attachment #2: Type: text/html, Size: 4134 bytes --]

  reply	other threads:[~2007-06-07 17:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-06 15:16 Jon Harrop
2007-06-06 15:26 ` [Caml-list] " Joel Reymont
2007-06-06 17:46   ` Ralph Douglass
     [not found]   ` <755FDE71-7ADC-4313-9D69-109BC6D834BE@valdosta.edu>
     [not found]     ` <8ABE187D-314A-4FBC-AEDC-333AAA148058@gmail.com>
2007-06-06 20:39       ` Jonathan Bryant
2007-06-07 15:21         ` William D. Neumann
2007-06-07 16:56           ` Jonathan Bryant
2007-06-07 17:08             ` Ralph Douglass [this message]
2007-06-07 17:16               ` Jonathan Bryant
2007-06-07 17:33                 ` Ralph Douglass
2007-06-07 17:40                 ` William D. Neumann
2007-06-07 20:41                   ` Jonathan Bryant
2007-06-07 17:16             ` William D. Neumann
2007-06-06 18:27 ` Bruno De Fraine

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=71767b800706071008h1b0b6f25m8e7e88f161f54c49@mail.gmail.com \
    --to=ralph@grayskies.net \
    --cc=caml-list@yquem.inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).