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
match keyword is not highlighted
Expected behavior
match is highlighted as keyword
Screenshots

Info (please complete the following information):
Possible culprit
I see that Carbon uses highlight.js here
|
.map(lang => [lang, require(`highlight.js/lib/languages/${lang}`)]) |
But looks like highlight.js actually recognieses match as a keyword, so I'm not sure what's happening.
https://github.com/highlightjs/highlight.js/blob/62f8a60a302718b625fa6f81a0aae35cdf824fea/src/languages/ocaml.js#L20
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
matchkeyword is not highlighted in OCaml code snippets. See the below example:To Reproduce
Steps to reproduce the behavior:
let example = match 0 with 0 -> 0matchkeyword is not highlightedExpected behavior
matchis highlighted as keywordScreenshots
Info (please complete the following information):
Possible culprit
I see that Carbon uses highlight.js here
carbon/lib/highlight-languages.js
Line 5 in 1334429
But looks like highlight.js actually recognieses
matchas a keyword, so I'm not sure what's happening.https://github.com/highlightjs/highlight.js/blob/62f8a60a302718b625fa6f81a0aae35cdf824fea/src/languages/ocaml.js#L20