Skip to content

OCaml: update to 5.x

Edwin Török requested to merge edwintorok/syntax-highlighting:master into master

The following are updated to match OCaml 5.x, with new testcases in autotests/input/ where possible:

  • keywords
  • standard library module names and Stdlib functions
  • string syntax (including quoted strings, unicode escapes, octal character escapes)
  • _ at beginning of identifiers
  • int32, int64, nativeint integer and hexadecimal floating point literals

I haven't added any new syntactic categories (such as attributes), but the existing categories should be nearly up-to-date with OCaml 5.x now.

This should improve OCaml highlighting both in Kate and pandoc --syntax-definition.

Merge request reports