Skip to content

Add missing MIME type for OCaml syntax highlighting#1604

Open
tmchow wants to merge 1 commit intocarbon-app:mainfrom
tmchow:fix/1565-ocaml-mime-type
Open

Add missing MIME type for OCaml syntax highlighting#1604
tmchow wants to merge 1 commit intocarbon-app:mainfrom
tmchow:fix/1565-ocaml-mime-type

Conversation

@tmchow
Copy link
Copy Markdown

@tmchow tmchow commented Apr 5, 2026

The OCaml entry in lib/constants.js was missing mime: 'text/x-ocaml', so CodeMirror loaded the base mllike mode without OCaml-specific keywords like match, module, try, begin, etc.

F# already had its mime field (text/x-fsharp) set correctly. This adds the same for OCaml.

Fixes #1565 (old issue, but wanted to throw my hat into the ring to contribute a fix)

The OCaml entry was missing `mime: 'text/x-ocaml'`, so CodeMirror
used the base mllike mode without OCaml-specific keywords. F# already
had its mime field set correctly.

Fixes carbon-app#1565
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 5, 2026

@tmchow is attempting to deploy a commit to the Carbon Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OCaml: The 'match' keyword is not highlighted

1 participant