OCaml: The 'match' keyword is not highlighted
Author: chshershCreated Jan 5, 2025Updated Apr 5, 2026
Labelsbug
First of all, thanks a lot for creating this project! I use it quite often to share code snippets on my X account. And I'm really grateful for you to implementing it and supporting my favourite languages!
Describe the bug
I noticed that the match keyword is not highlighted in OCaml code snippets. See the below example:
To Reproduce Steps to reproduce the behavior:
- Go to carbon.now.sh
- Choose OCaml
- Type simple code like
let example = match 0 with 0 -> 0 - See that the
matchkeyword is not highlighted
Expected behavior
match is highlighted as keyword
Screenshots
Info (please complete the following information):
- OS: Windows
- Browser: Chrome
- Carbon URL: https://carbon.now.sh/?bg=rgba%28239%2C122%2C8%2C1%29&t=seti&wt=none&l=mllike&width=549.25&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=false&pv=56px&ph=56px&ln=true&fl=1&fm=Fira+Code&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=let%2520example%2520%253D%2520match%25200%2520with%25200%2520-%253E%25200
I see that Carbon uses highlight.js here
But looks like highlight.js actually recognieses match as a keyword, so I'm not sure what's happening.
Source: carbon-app/carbon