diff options
| author | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-05-15 11:23:06 +0530 |
|---|---|---|
| committer | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-05-15 11:23:06 +0530 |
| commit | 70f9d8fbef47a735c2e6ef5f250afedfb2a99c65 (patch) | |
| tree | 433332be1e4e791dd3a0ad9f4a25ac181af3d270 | |
| parent | 8cfe59fcb0c8e68625607a848164197168927c3d (diff) | |
OCaml: Recognize `'\"'` as a char literal and not the start of a string literal
| -rw-r--r-- | rc/filetype/ocaml.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/ocaml.kak b/rc/filetype/ocaml.kak index 34024c01..2968ec79 100644 --- a/rc/filetype/ocaml.kak +++ b/rc/filetype/ocaml.kak @@ -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 |
