From: "Glen Mével" <glen.mevel@crans.org>
To: Markus Mottl <markus.mottl@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Quoted strings and vim-syntax-highlighting
Date: Tue, 1 Mar 2016 21:49:18 +0100 [thread overview]
Message-ID: <56D6004E.1050706@crans.org> (raw)
In-Reply-To: <CAP_800qvByUNZKsnmK5oqQDc8ebA05ArLFuh_AfC3oYboR8wOw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
hello,
Le 01/03/2016 16:10, Markus Mottl a écrit :
> It's a known issue, but I'm currently too busy to do anything about
> it. Please feel free to implement a solution, and I'll add it to the
> Vim-syntax file for OCaml.
this does the trick:
syn region ocamlString start="{\z\([a-z_]*\)|" end="|\z1}"
for a more complete addition (i put spellchecking because it was already
set for "" string litterals, not sure if appropriate):
syn region ocamlString matchgroup=ocamlLabel start="{\z\([a-z_]*\)|"
end="|\z1}" contains=@Spell
or, even neater:
syn region ocamlString matchgroup=ocamlQuotedStringDelim
start="{\z\([a-z_]*\)|" end="|\z1}" contains=@Spell
with that line in the appropriate place of the syntax file:
HiLink ocamlQuotedStringDelim Identifier
--
Glen Mével
this has to be implemented in utop too…
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-03-01 20:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 15:03 Oliver Bandel
2016-03-01 15:05 ` Oliver Bandel
2016-03-01 15:07 ` Oliver Bandel
2016-03-01 15:10 ` Markus Mottl
2016-03-01 20:49 ` Glen Mével [this message]
2016-03-01 21:29 ` Markus Mottl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56D6004E.1050706@crans.org \
--to=glen.mevel@crans.org \
--cc=caml-list@inria.fr \
--cc=markus.mottl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox