Skip to content

Syntax highlighting incorrect in tutorial #3037

Open
@patrick-nicodemus

Description

@patrick-nicodemus

Several code samples in the tutorial are receiving the "comment" styling where they should not be.

  • In the first code sample here the second 50 is incorrectly highlighted
  • In # 6.28;; the .28 ;; is highlighted incorrectly
  • In the code sample [https://ocaml.org/docs/tour-of-ocaml#expressions-and-definitions] 50 * 50, the string * 50 is highlighted as a comment
  • in # 9 :: u;; the :: u;; is highlighted incorrectly
  • in # 2 * if "hello" = "world" then 3 else 5;; everything after the 2 is highlighted incorrectly
  • in # 2.0 +. 2.0;;, .0 +. 2.0;; is highlighted incorrectly
  • in # 1 + 2.5;;, + 2.5;; is highlighted incorrectly (same with 1 +. 2.5)
  • # 1 :: [2; 3; 4];;
  • # 10 / 0;;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions