Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions

Line 463:
 
Here are bugs in the ocaml syntax highlighting
* there is a difference between integer arithmetic and float arithmetic, for exemple:
<blockquote>
<lang ocaml>3 + 4 (* integer addition *)
3.4 +. 1.2 (* float addition *)</lang>
the point that indicates the float operation (<code>+. *. /. -.</code>) is caught as the separator between a module name and a function from that module:
<lang ocaml>value_a +. value_b</lang>
here value_a and value_b should have the same color.
</blockquote>
:* What do you need in particular? Different colors for int and float? --[[User:BenBE|BenBE]] 00:29, 18 February 2010 (UTC)
:: No. The issue is now solved. [[User:Blue Prawn|Blue Prawn]] 23:04, 28 February 2010 (UTC)
 
* This problem also occurs with fields of structures: