Greetings,
I believe there is a problem in the OCaml syntax highlighting. It has to do with:
let xxx = 10 and yyy = 20
If you want it to color that correctly, you have to:
let xxx = 10 and yyy = 20
Can someone verify? I have posted two screen shots:
http://lifewithchrist.org/OCaml_tm.png <- wrong way http://lifewithchrist.org/OCaml_tm_correct.png <- right way
Notice on the first image, how the vars turn italic and purple. But also notice how the try statement below does the exact same thing.
Jeremy
On Thu, 14 Sep 2006, Jeremy Cowgar wrote:
Can someone verify? I have posted two screen shots:
http://lifewithchrist.org/OCaml_tm.png <- wrong way http://lifewithchrist.org/OCaml_tm_correct.png <- right way
What revision of the language grammar are you using? I made a change yesterday that should have fixed that (if you do the show scope command when on name, something, etc. when wrong, do you see a meta.type-declaration.ocaml in there? if so, that should have been fixed in revision 5204).
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
The scopes are:
source.ocaml, meta.module.structure.ocaml, meta.object.ocaml (listed twice), meta.type-definition.ocaml, storage.type.user-defined.ocaml
Jeremy
On Sep 14, 2006, at 4:33 PM, William D. Neumann wrote:
What revision of the language grammar are you using? I made a change yesterday that should have fixed that (if you do the show scope command when on name, something, etc. when wrong, do you see a meta.type-declaration.ocaml in there? if so, that should have been fixed in revision 5204).
On Thu, 14 Sep 2006, Jeremy Cowgar wrote:
The scopes are:
source.ocaml, meta.module.structure.ocaml, meta.object.ocaml (listed twice), meta.type-definition.ocaml, storage.type.user-defined.ocaml
Yeah, it looks like you're not at the current version of the ocaml grammar. If you go to ~/Library/Application Support/TextMate/Bundles/OCaml.tmbundle (or wherever you keep your bundles) and run svn info, what does it report? If the Last Changed Rev is less than 5204 (most recent for OCaml is 5214) then you'll need te run svn up to update it and get the fix.
Note, however, that svn sometimes gets confused, and it thinks it's up to date when it really isn't. This happened to me a week or so ago, when one of my revisions had to be rolled back because it thought a really old version of the grammar was up to date. If you run svn up and still have this issue, then if might be best to scrap the lot and do a fresh checkout.
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
On 14/9/2006, at 23:03, William D. Neumann wrote:
[...] This happened to me a week or so ago, when one of my revisions had to be rolled back because it thought a really old version of the grammar was up to date. If you run svn up and still have this issue, then if might be best to scrap the lot and do a fresh checkout.
In the interest of sharing, this also just happened for Michael Sheets, who thus did similar to an HTML grammar change I’d committed.
This would seem to be a rather serious flaw in svn -- anyone familiar with this flaw? i.e. is it known/reproducible/PIBCAC/similar?
William,
Thank you. That did the trick.
Jeremy
On Sep 14, 2006, at 5:03 PM, William D. Neumann wrote:
On Thu, 14 Sep 2006, Jeremy Cowgar wrote:
The scopes are:
source.ocaml, meta.module.structure.ocaml, meta.object.ocaml (listed twice), meta.type-definition.ocaml, storage.type.user- defined.ocaml
Yeah, it looks like you're not at the current version of the ocaml grammar. If you go to ~/Library/Application Support/TextMate/ Bundles/OCaml.tmbundle (or wherever you keep your bundles) and run svn info, what does it report? If the Last Changed Rev is less than 5204 (most recent for OCaml is 5214) then you'll need te run svn up to update it and get the fix.