OCaml: Recognize '\"' as a char literal and not the start of a string literal

This commit is contained in:
Sidharth Kshatriya 2022-05-15 11:23:06 +05:30
parent 8cfe59fcb0
commit 70f9d8fbef

View File

@ -32,7 +32,7 @@ provide-module ocaml %{
add-highlighter shared/ocaml regions
add-highlighter shared/ocaml/code default-region group
add-highlighter shared/ocaml/string region (?<!')" (?<!\\)(\\\\)*" fill string
add-highlighter shared/ocaml/string region (?<!['\\])" (?<!\\)(\\\\)*" fill string
add-highlighter shared/ocaml/quotedstring region -match-capture %"\{(\w*)\|" %"\|(\w*)\}" fill string
add-highlighter shared/ocaml/comment region -recurse \Q(* \Q(* \Q*) fill comment