betacode1 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

"match" should be highlighted keyword in OCaml #290

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Included in blogger header: <script 
src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang
=ocaml&amp;skin=default"></script>
2. Use HTML provided below.
3. View in blogger
(Please include HTML, not just your source code)

<pre class='prettyprint lang-ocaml'>
let test = [1; 2; 3]
match test with
  [] -> 0
  x::xs -> 1
</pre>

What is the expected output?  What do you see instead?
"match" should be a highlighted keyword in OCaml. Now it isn't.

What version are you using?  On what browser?
Tested on Firefox and Chromium.

Please provide any additional information below.

Original issue reported on code.google.com by olleharstedt@gmail.com on 15 Jun 2013 at 10:17

GoogleCodeExporter commented 8 years ago
Use lang=ml instead of lang=ocaml.

<script 
src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang
=ml"></script>

<pre class='prettyprint lang-ml'>
let test = [1; 2; 3]
match test with
  [] -> 0
  x::xs -> 1
</pre>

Original comment by mikesamuel@gmail.com on 26 Jun 2013 at 2:56